What are the ways we can destroy a session variable ?
Answers were Sorted based on User's Feedback
Answer / nilsoft
There are three ways
1. session_destroy()
2. session_unset()
3. session_unregister()
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / jeevi
it will destroy all the variables.
session.invalidate();
if you want to destroy individual variables, use this command.
session.removeAttribute("sessionvariablename");
| Is This Answer Correct ? | 3 Yes | 14 No |
What is session in php w3schools?
How arrays are passed through arguments?
How many keywords are there in php?
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
Explain how to run the interactive php shell from the command line interface?
List some array functions in php?
i was set new individual folder for saving session values,the folder name is session and i set 777 permission,using session.save_path function like session.save_path "/home21b/sub004/sc21311-ULCX/candyoflove.com/session/" but it causing Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is 12112/12112 is not allowed to access /home21b/sub004/sc21311-ULCX/candyoflove.com/session owned by uid/gid 12267/12267 in Unknown on line 0 ,please tell what changes make this script, i was using .htaccesss file..plz help me....
Tell me how can we display information of a variable and readable by human with php?
Why php language is used?
What is mean tnq
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
what do you mean by php.ini file ?????????