Differences From:
File
src/cgi.c
part of check-in
[555911dff5]
- Render the header of every page using subscript. Add a setup page that
for editing that subscript.
by
drh on
2007-11-21 03:01:40.
[view]
To:
File
src/cgi.c
part of check-in
[68a202e101]
- Attach login cookies to the root path of the server, so that multiple
servers can coexist on the same site.
by
drh on
2007-11-21 12:21:03.
[view]
@@ -151,9 +151,9 @@
const char *zValue, /* Value of the cookie. Automatically escaped */
const char *zPath, /* Path cookie applies to. NULL means "/" */
int lifetime /* Expiration of the cookie in seconds from now */
){
- if( zPath==0 ) zPath = "/";
+ if( zPath==0 ) zPath = g.zTop;
if( lifetime>0 ){
lifetime += (int)time(0);
blob_appendf(&extraHeader,
"Set-Cookie: %s=%t; Path=%s; expires=%s; Version=1\r\n",