You are here: DEVPPL Forum Programming PHP and MySQL Forum
NOTIFICATIONS
54.127
MEMBERS
15.697
TOPICS
62.285
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Get time-out for a session?

0

Loading

Get time-out for a session?

Postby Rasmus Lindström » Mon Aug 23, 2004 4:13 pm

When I set a session, how long is it until its timed out, and how can I change that time?
Rasmus Lindström
Site Admin
 
Reputation: 18
Posts: 2830
Joined: Tue Aug 17, 2004 2:07 pm
Location: Sweden
Highscores: 1
Arcade winning challenges: 0

Get time-out for a session? - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Postby Eclipse » Mon Aug 23, 2004 6:22 pm

Im not sure if its working because I use it but Im not sure if it changes the session time. But its worth a try. Add this before session_start():
[php]define(TIMEOUT, 10*60);
// THIS WILL SET THE SESSION LENGTH TO 10 MINUTES[/php]
Eclipse
 
Reputation: 0
Posts: 12
Joined: Mon Aug 23, 2004 9:26 am
Highscores: 0
Arcade winning challenges: 0
0

Loading

Postby Rasmus Lindström » Mon Aug 23, 2004 6:46 pm

That worked perfectly, thanks alot Eclipse.
[url=http://www.linkedin.com/profile/view?id=96243938]Meet me on LinkedIn[/url]
[img]http://www.devppl.com/images/facebook_icon_small.jpg[/img] Help DEVPPL grow, [url=http://www.facebook.com/pages/DEVPPL/140524279390050]like DEVPPL on facebook[/url]!
Rasmus Lindström
Site Admin
 
Reputation: 18
Posts: 2830
Joined: Tue Aug 17, 2004 2:07 pm
Location: Sweden
Highscores: 1
Arcade winning challenges: 0
0

Loading

Postby Rasmus Lindström » Mon Aug 23, 2004 6:46 pm

I hope it will work too :), thanks alot Eclipse.
[url=http://www.linkedin.com/profile/view?id=96243938]Meet me on LinkedIn[/url]
[img]http://www.devppl.com/images/facebook_icon_small.jpg[/img] Help DEVPPL grow, [url=http://www.facebook.com/pages/DEVPPL/140524279390050]like DEVPPL on facebook[/url]!
Rasmus Lindström
Site Admin
 
Reputation: 18
Posts: 2830
Joined: Tue Aug 17, 2004 2:07 pm
Location: Sweden
Highscores: 1
Arcade winning challenges: 0
^ Back to Top