question on session
Posted: Sat Aug 14, 2010 12:23 am
Hi guyz, hope you can help me on this matter..
Let say i got a php file that will run huge codes with long processes, and it requires more than 30 minutes to finished it.
My codes are divided to 2 parts, where first part require 25 minutes, and second part require 5 minutes. Each of them requires "admin" session to pass the if statement.
Here's the sketch of my codes:
<?
if(isset($_SESSION['admin'])){
//this part require 25 minutes
}
if(isset($_SESSION['admin'])){
//this part require 5 minutes
}
?>
so while processing my first part of code, will my session destroyed due to inactivity for 20 minutes? will my second part of code runs?
if my session will be destroyed, is there any solution to this?
(except putting 2nd part of code into first part)
Let say i got a php file that will run huge codes with long processes, and it requires more than 30 minutes to finished it.
My codes are divided to 2 parts, where first part require 25 minutes, and second part require 5 minutes. Each of them requires "admin" session to pass the if statement.
Here's the sketch of my codes:
<?
if(isset($_SESSION['admin'])){
//this part require 25 minutes
}
if(isset($_SESSION['admin'])){
//this part require 5 minutes
}
?>
so while processing my first part of code, will my session destroyed due to inactivity for 20 minutes? will my second part of code runs?
if my session will be destroyed, is there any solution to this?
(except putting 2nd part of code into first part)