Jump to content

Session problem


marshall

Recommended Posts

[quote author=hackerkts link=topic=102443.msg406489#msg406489 date=1154356631]
If you want to have a expire time, then I would suggest you to use cookie.
[/quote]
Sessions does use a cookie!

Also marshall I dont think what you are trying to do is possible.
Link to comment
Share on other sites

I do not have shoure but i guess you mush change the value (seconds) "session.cookie_lifetime" in your php.ini file that is set as 0 as default. - expires when user closes the browser. Maybe you would have to check if a var is set, and if not redirect with something like <script>window.location="www.something.com";</script>

Do not know if it would work.
Link to comment
Share on other sites

[quote author=hackerkts link=topic=102443.msg406505#msg406505 date=1154357647]
Ok, thanks for the explaination.
And I still think he should use a cookie instead of session, since you can set the seconds until the cookie ends and will redirect to other page as marshall mention.
[/quote]

You can certainly set the time until a cookie expires but it still won't cause anything to be redirected.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.