I need to extend the session

Discuss everything related to PHP Hotel Site. All versions. Any questions related to the PHP Hotel Site developing or using should be posted to this forum.

Moderator: alexandrleonenko

maurito
Newbie
Newbie
Posts: 7
Joined: Mar 2nd, '16, 19:27

I need to extend the session

Postby maurito » Mar 18th, '16, 11:08

Hi,

I would like to adapt the duration of the session after login, I wish it was longer. But now after a little idle time (for me too short) I get redirected to the home page.

Where do I find the duration of the session?

Thanks for your help
Maurito

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: I need to extend the session

Postby ne_moj » Mar 20th, '16, 16:23

Hello maurto.

Try in file "include/connection.php" before function "session_start()" insert the line:
session_set_cookie_params (3600); // 3600 seconds == 60 minutes

BerkatSoft
Newbie
Newbie
Posts: 1
Joined: Nov 19th, '19, 12:25

Re: I need to extend the session

Postby BerkatSoft » Nov 19th, '19, 12:28

Hi, the problem still exist after I add the line : session_set_cookie_params (3600); // 3600 seconds == 60 minutes

administrator
Site Admin
Site Admin
Posts: 6098
Joined: Jan 7th, '09, 23:18
Contact:

Re: I need to extend the session

Postby administrator » Nov 20th, '19, 06:20



Return to “ApPHP HotelSite / uHotelBooking Talk {developers/users}”