PHP forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
April 2024
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930    

Calendar Calendar

Latest topics
» Kabaddi, Kabaddi, Kabaddi, Kabaddi......PHP?
session_unset vs session_destroy EmptyFri Jul 22, 2011 1:37 pm by shyamsunder

» Thousands of Free PHP Scripts Recommended
session_unset vs session_destroy EmptyWed May 18, 2011 10:33 am by bizboy12

» PHP form validation problem?
session_unset vs session_destroy EmptyWed Jan 12, 2011 1:25 pm by simy202

» string wrap
session_unset vs session_destroy EmptySat Aug 02, 2008 2:06 pm by scvinodkumar

» retrieving current date rows
session_unset vs session_destroy EmptyTue Jul 15, 2008 3:25 am by scvinodkumar

» number in words
session_unset vs session_destroy EmptyTue Apr 29, 2008 3:10 pm by scvinodkumar

» Simple PHP Form Field Generator
session_unset vs session_destroy EmptyFri Apr 25, 2008 12:28 pm by scvinodkumar

» PHP password generator
session_unset vs session_destroy EmptyFri Apr 18, 2008 7:24 pm by scvinodkumar

» PHP Script to Extract Email Address from any text
session_unset vs session_destroy EmptyFri Apr 18, 2008 7:18 pm by scvinodkumar

Search
 
 

Display results as :
 


Rechercher Advanced Search

Affiliates
free forum
 


Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

session_unset vs session_destroy

2 posters

Go down

session_unset vs session_destroy Empty difference b/w session_unset and session_destroy

Post  scvinodkumar Fri Feb 08, 2008 5:09 pm

The difference between both session_unset and session_destroy is as follows:

session_unset just clears out the sesison for usage. The session is still on the users computer. Note that by using session_unset, the variable still exists.

Using session_unset in tandem with session_destroy however, is a much more effective means of actually clearing out data. As stated in the example above, this works very well, cross browser:

session_unset();
session_destroy();

I noticed that in firefox, one could simply use sesison_unset and the session would be cleared. When trying this on IE, I was horrified to find out that the data was still there, so I had to use session destroy.
Rolling Eyes

scvinodkumar
Admin

Posts : 40
Join date : 2008-01-30

https://solutions.aforumfree.com

Back to top Go down

session_unset vs session_destroy Empty session_unset vs session_destroy

Post  kdhayanandan Wed Feb 06, 2008 11:37 pm

Hi guys..
Can u tell whats difference b/w session_unset and session_destroy and also where can we use corresponding function??
kdhayanandan
kdhayanandan

Posts : 5
Join date : 2008-01-30
Location : Chennai

http://mother-theresa.blogspot.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum