| Author |
Message |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Jun 17, 2003 9:28 am Post subject: Cookies length |
|
|
Hi Dari,
Maybe be just my machine - but I have to log back in everytime I visit your site (1-2 days)!
I'm guessing it's 'cause of the changes in the session cookie? to allow for the 'updated gallerys' block - but it could just be me!
If it's right and like that on all machines - seems to be a bit of a pain for frequent return visitors.
Tony |
|
| Back to top |
|
|
AdBot
|
| Post subject: Cookies length |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Jun 17, 2003 11:08 am Post subject: |
|
|
yep, that was the only way to force visitor to log back in and get a current list of the updated albums (the cookie time is set to 1 hour). it's an unfortunate side effect of the fact that the last user time/session time values in the nuke database are only updated if the user views the forums. so i had to figure out another way of storing the last time the user visited, along with a way of making sure that they were logged out after a certain period of inactivity.
any suggestions on a workaround? |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Jun 17, 2003 1:15 pm Post subject: |
|
|
Hi,
Not knowing too much about cookies!! Is it not possible to get either get gallery or nuke to generate a new unique cookie, maybe from /modules/gallery/albums.php or /index.php that sends a cookie to the users machine - then when the user returns - it's checked to see what info that cookie contains? Can a cookie contain a string/array that details exactly what albums exist on the site? Then checks this info against the currently albums?
WOW that all sounds a load of crap
Told you I didn't know anything about cookies!
Does the nuke cookie contain details of your last visit? Maybe keep a record of when changes are made to the gallery and use this to compare!! Dunno - sry not much help maybe
Maybe it's just a case of separating the nuke user cookie and a gallery cookie?
Tony |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Jun 17, 2003 4:18 pm Post subject: |
|
|
Quote: › Can a cookie contain a string/array that details exactly what albums exist on the site? Then checks this info against the currently albums?
yes, but that's a large amount of info to transfer to the user's machine, and might take a little longer than is desired.
Quote: › Does the nuke cookie contain details of your last visit? Maybe keep a record of when changes are made to the gallery and use this to compare!! Dunno - sry not much help maybe
the PHPNuke cookie does not natively have the session time of the user stored in it. the only time that such a value would be updated is when a user logs in, thus, if the default session time of the Nuke cookie is retained (i think the value is about 30 days), the user wouldn't have to log back in, and the last visit time would never be updated. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Jun 17, 2003 4:56 pm Post subject: |
|
|
Well I did say I didn't know much about cookies!
I have seen Nuke blocks that record the last time you were seen / whos online - in the site (hours, etc). I guess that records (to db) that info - can that be used in anyway?
Tony |
|
| Back to top |
|
|
|
|
|
|
|