943,904 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 1299
  • PHP RSS
Mar 22nd, 2009
0

setting all session variable to null(hel pls)

Expand Post »
Good day.!

How to clear all session variable when they click back on the internet explorer.?Assuming that i am on info.php page, when i click back on that page, all session on the whole site will be set to null.

Pls help if this is possible.

Thank you.God bless on this mother Earth.
Reputation Points: 7
Solved Threads: 1
Posting Whiz in Training
blocker is offline Offline
231 posts
since Jan 2009
Mar 22nd, 2009
1

Re: setting all session variable to null(hel pls)

Although I couldn't understand all of that question(s) to empty all sessions just use the following:
php Syntax (Toggle Plain Text)
  1. $_SESSION=array();
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007
Mar 22nd, 2009
1

Re: setting all session variable to null(hel pls)

or use the built in method

PHP Syntax (Toggle Plain Text)
  1. session_destroy();
Reputation Points: 66
Solved Threads: 56
Posting Pro in Training
Fungus1487 is offline Offline
459 posts
since Apr 2007
Mar 22nd, 2009
0

Re: setting all session variable to null(hel pls)

Click to Expand / Collapse  Quote originally posted by Fungus1487 ...
or use the built in method

PHP Syntax (Toggle Plain Text)
  1. session_destroy();
Thank you very very much.this help me so much.
Reputation Points: 7
Solved Threads: 1
Posting Whiz in Training
blocker is offline Offline
231 posts
since Jan 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: automatic email forgotten password(pls help)
Next Thread in PHP Forum Timeline: Php MYSQL error message help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC