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";
> >
>
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.
--- 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
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
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
--- 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
6 matches
Mail list logo