Previous Thread
Next Thread
Print Thread
Hop To
Joined: Sep 2004
Posts: 28
F
newbie
newbie
F Offline
Joined: Sep 2004
Posts: 28
I need users to login at least once a day, through a seperate login box our mainpage, because I want to close the gap between community and content.
For some reason I can´t do this properly when using cookies. When cookies where set to 24 hours, they expired exactly 24 hours laters, so when you´re online the same time one day later, and you just finished writing a little novel and hit submit, boom - all gone.

True sessions, no insecure transid crap but session cookies can do it in a proper way:
When garbarge collection is set to 30 minutes (php.ini), then the cookie remains 30 Minutes after the last click - just what I need.

Is there any way at all, to accomplish this with the normal tracking?

Reasons why I can´t use sessions:
- photopost doesn´t work with it
- "Note: Sessions can be problematic for many users."
- numerous bugs I haven´t even started looking through

thanks

Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
If you set the cookie expiration time long (like 30 days or 60 days) then removed the "remember me" checkbox from the login.tmpl and logout.tmpl pages, the user would login, and the login would last only for the browser session (yet not a session - still using cookies) it's just that if they return later, the remember cookie isn't set, and they will have to re-login.
that might work for you.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
Joined: Sep 2004
Posts: 28
F
newbie
newbie
F Offline
Joined: Sep 2004
Posts: 28
nice workaround, I´ll try that!
thanks!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
2 members (Ruben, 1 invisible), 422 guests, and 169 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)