Re: [PHP] Sessions and PHP

2004-03-26 Thread Patrik Fomin
how do i determine if a session has been destroyed/created ? patrick "John W. Holmes" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Patrik Fomin wrote: > > Let me rephrase it, > > > > i got a login page, once logged in you you got the session > > $_SESSION['in'] = "true"; > > >

Re: [PHP] Sessions and PHP

2004-03-26 Thread John W. Holmes
Patrik Fomin wrote: Let me rephrase it, i got a login page, once logged in you you got the session $_SESSION['in'] = "true"; i want to be able to count the number of people that are logged in atm, so when they logout with either logout button or close the window, i want to then decrese the number.

[PHP] Sessions and PHP

2004-03-26 Thread Patrik Fomin
Let me rephrase it, i got a login page, once logged in you you got the session $_SESSION['in'] = "true"; i want to be able to count the number of people that are logged in atm, so when they logout with either logout button or close the window, i want to then decrese the number. In asp, you just

Re: [PHP] Sessions and PHP

2004-03-24 Thread Chris Shiflett
--- Patrik Fomin <[EMAIL PROTECTED]> wrote: > is there anyway to get the number of people connected to the site? > in asp you just use Application and session_terminate to accomplish > this is there anyway to do this in PHP? Taken literally, you are asking about the number of active connections, m

Re: [PHP] Sessions and PHP

2004-03-24 Thread Filip de Waard
On Mar 25, 2004, at 2:05 AM, Patrik Fomin wrote: is there anyway to get the number of people connected to the site? in asp you just use Application and session_terminate to accomplish this is there anyway to do this in PHP Hi Patrick, As far as I know this is not possible with default PHP session

[PHP] Sessions and PHP

2004-03-24 Thread Patrik Fomin
Hi,, is there anyway to get the number of people connected to the site? in asp you just use Application and session_terminate to accomplish this is there anyway to do this in PHP ? regards patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] sessions and php

2003-09-18 Thread Justin French
Assuming PHP >= 4.1 page1.php // set some session vars $_SESSION['color'] = 'red'; $_SESSION['name'] = 'Justin'; ?> page2.php // echo some session vars echo "Hello {$_SESSION['name']}, your favourite color is {$_SESSION['color']}"; // clear some session vars unset($_SESSION['name']); // modi

Re: [PHP] sessions and php

2003-09-18 Thread Chris Shiflett
--- Patrik Fomin <[EMAIL PROTECTED]> wrote: > start_session["test"] > register_session["test2"] Please read this: http://www.php.net/session Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (htt

[PHP] sessions and php

2003-09-18 Thread Patrik Fomin
Hi, can anyone help my list the ways to create/view a session, i need to find out if my host supports any of em (kinda strange host), eg: page1.php start_session["test"] register_session["test2"] etc page2.php retrive session 1, 2 etc and display their contents regards patrick -- PHP Genera