Link to home
Start Free TrialLog in
Avatar of Ashok9
Ashok9Flag for India

asked on

Session on PHP

I have a php page. That has AJAX code with in it. My Question is that if the page is not refreshed for more than two hours but AJAX script runs in each 5 mins. In that time will the session expire.

My total ambition is that the session should not end until user closes window or sign outs or any interuption from client side.
SOLUTION
Avatar of -null-
-null-

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ashok9

ASKER

if that ajax does not call session_start() but it uses session variable array. will the session be available?
Avatar of -null-
-null-

You have to call session_start for the session variable array to be available, else it will be empty.  Theoretically also, if that didn't matter for the session array to available, then it would time out anyway.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial