Page 1 of 1

Sessions again...

Posted: Thu Jun 01, 2006 2:35 am
by zlatko
Hi all!
Have problem with sessions. I need at the same time monitoring some event from database and send some commands into it.. I have use sessions so when first script running second cant start becouse session file is locked...I see that with php i cant find another solution for release that... Or i missed something ? I wat see that two my scripts working paralel...Is it possible?
Or maiby it will be better use Perl for release something alike that?
Please help me becouse i 'm not have many knowledge it this area ....

Posted: Thu Jun 01, 2006 9:03 am
by ok
Post your code...

Posted: Thu Jun 01, 2006 9:49 am
by zlatko
Ok :lol:

First script code

Code: Select all

<?php
session_start();
sleep(100);
?>

Second script code

Code: Select all

<?php
session_start();
echo ("Its me");
?>



Call them one by one and you see that second script will be waiting 100s and then print message

Posted: Sat Jun 03, 2006 3:15 pm
by ok
Explain yourself!