Moving session id out of jet tag.
This commit is contained in:
1 parent
24035c9d28
commit
fd5069f69f
9 files changed
+43
-771
No files matched your search
@@ -20,8 +20,6 @@ namespace jet {
|
||||
// if last activity time is expired then ignore.
|
||||
// follow sessiontimeoutredirecturl.
|
||||
// else
|
||||
// generate new session id.
|
||||
// create session cookie in response.
|
||||
unsigned char hashit[64];
|
||||
unsigned char hash[SHA_DIGEST_LENGTH];
|
||||
char hashname[64];
|
||||
@@ -29,7 +27,7 @@ namespace jet {
|
||||
SHA1(hashit, strlen((char *)hashit), hash);
|
||||
sprintf(hashname, "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
|
||||
hash[0], hash[1], hash[2], hash[3], hash[4], hash[5], hash[6], hash[7], hash[8], hash[9],
|
||||
hash[10], hash[11], hash[12], hash[13], hash[14], hash[15], hash[16], hash[17], hash[18], hash[19]);
|
||||
hash[10], hash[11], hash[12], hash[13], hash[14], hash[15], hash[16], hash[17], hash[18], hash[19]);
|
||||
coreutils::ZString sessionCookie(hashname);
|
||||
global.headers["Set-Cookie"] << "session=" << sessionCookie;
|
||||
if(keywordDefined("sessiontimeout")) {
|
||||
|
||||
Reference in new issue
Block a user