Sessions again...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zlatko
Forum Newbie
Posts: 2
Joined: Thu Jun 01, 2006 2:20 am

Sessions again...

Post 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 ....
User avatar
ok
Forum Contributor
Posts: 393
Joined: Wed May 31, 2006 9:20 am
Location: The Holy Land

Post by ok »

Post your code...
zlatko
Forum Newbie
Posts: 2
Joined: Thu Jun 01, 2006 2:20 am

Post 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
User avatar
ok
Forum Contributor
Posts: 393
Joined: Wed May 31, 2006 9:20 am
Location: The Holy Land

Post by ok »

Explain yourself!
Post Reply