/    Sign up×
Community /Pin to ProfileBookmark

how to expire session in php?

how to expire session in php?

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@jedaisoulNov 21.2014 — Try [url=http://www.w3schools.com/php/php_sessions.asp]here[/url] under "Destroy a Session"...
Copy linkTweet thisAlerts:
@NogDogNov 21.2014 — If you want to make sure the session cookie, $_SESSION array, and session data are all terminated, see example #1 on the [url=http://php.net/session_destroy]manual page for session_destroy()[/url].
Copy linkTweet thisAlerts:
@EastmanldhauthorNov 22.2014 — for session destroy we use session_destroy but some time we use unset. what is the difference between both?
Copy linkTweet thisAlerts:
@NogDogNov 22.2014 — Here's a tip that will both save you time and help you learn: you can find the official documentation of any PHP function by this URL format:

http://php.net/unset

http://php.net/session_destroy
Copy linkTweet thisAlerts:
@isrardogarNov 23.2014 — session_destroy — Destroys all data registered to a session

Ref - http://php.net/manual/en/function.session-destroy.php




**Links removed by Site Administrator so it doesn't look like you're spamming us. Please don't post them again.**
×

Success!

Help @Eastmanldh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...