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.
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
--- 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
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.
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
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
9 matches
Mail list logo