/    Sign up×
Community /Pin to ProfileBookmark

How would I make a session expire after 15 minutes?? Some sites log me out after 15 minutes of no-use..

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@NogDogAug 08.2009 — You can set the [url=http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime]session.cookie_lifetime[/url] setting in your configuration (php.ini or .htaccess), or per script via [url=http://php.net/session_set_cookie_params]session_set_cookie_params[/url]() (must be done before every session_start() if you do it this way).
×

Success!

Help @tim_wilson2009 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.16,
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,
)...