Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-09-2006, 10:10 PM Session lifetime
Junior Talker

Posts: 2
Trades: 0
Hello,

How can I set session lifetime to 24hours? Or to close webbrowser window.

Goodbye
dopy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-10-2006, 03:49 AM Re: Session lifetime
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
RTFM? http://ru.php.net/manual/en/function...kie-params.php
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 07-10-2006, 10:12 AM Re: Session lifetime
Novice Talker

Posts: 10
Name: Cody Singsaas
Trades: 0
This article might be helpful also:

http://blog.centresource.com/2006/05...-an-adventure/
__________________
IE Internet Solutions / Cody Singsaas (President)

Please login or register to view this content. Registration is FREE
from a trusted provider

URL
Please login or register to view this content. Registration is FREE
/ Email
Please login or register to view this content. Registration is FREE
csingsaas is offline
Reply With Quote
View Public Profile
 
Old 07-10-2006, 08:31 PM Re: Session lifetime
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
A session is only good as the lifetime of the session itself, its not designed to be relived after the user has finished thier "session"
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-11-2006, 05:40 AM Re: Session lifetime
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Quote:
Originally Posted by mgraphic
A session is only good as the lifetime of the session itself, its not designed to be relived after the user has finished thier "session"
Why? If you set session lifetime to "forever" (10 years will be enough) then user will not have to login every time he visits a site. I'm sure that authorisation systems on most sites are made in such a way.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 07-11-2006, 10:35 PM Re: Session lifetime
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
I'm just saying that sessions should not be confused with cookies. Even though they are somewhat the same, they are different.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-12-2006, 01:41 AM Re: Session lifetime
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Man, I think you don't understand what is session and what is cookie. Session is tightly tied to cookies since session identifier is passed to server within the cookie. So it is obvious that session lifetime solely depends on cookie lifetime. Also if a user deletes his cookie it becomes impossible to restore his session if using standart mechanism for session handling.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to Session lifetime
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.51578 seconds with 12 queries