Computing.Net > Forums > Web Development > sessions in php

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sessions in php

Reply to Message Icon

Name: pari
Date: March 17, 2005 at 01:11:43 Pacific
OS: Windows XP proff
CPU/Ram: 256 MB
Comment:

I am new to PHP.
i have a problem using sessions.I had used sessions in my PHP code.Now when i bookmark a page from my website and close the site without logging out and reopen that page from "favorites" it displays the page without asking for Login.i want to validate that, please help me with a possible solution for it .



Sponsored Link
Ads by Google

Response Number 1
Name: fambi
Date: March 17, 2005 at 13:14:46 Pacific
Reply:

You have to destroy the session to avoid this scenario.

The other option is to reset the variable.

Something like $_SESSION[variable]=""

But otherwise, you HAVE to destroy the session with some type of logout code

If you're interested in SMS, visit section about sms news.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: sessions in php

Having problem in register session www.computing.net/answers/webdevel/having-problem-in-register-session/4307.html

Date in php www.computing.net/answers/webdevel/date-in-php-/506.html

Open URLs in PHP w/out opening wind www.computing.net/answers/webdevel/open-urls-in-php-wout-opening-wind/199.html