session not working on a php page
- From: Suman <YoSumo@xxxxxxxxx>
- Date: Sun, 13 Apr 2008 05:15:56 -0700 (PDT)
Hi All,
I am trying to experiment with sessions and they seem to be resetting
everytime i visit the page.
here is the code of the page
<?php
session_start();
$count = $_SESSION["counter"] + 1;
$_SESSION["counter"] = $count;
echo $_SESSION["counter"];
?>
if I refresh the page, the count doesn't increase. Whast should i do
to fix this?
any help is much appreciated
cheers
Suman
.
- Follow-Ups:
- Re: session not working on a php page
- From: "Álvaro G. Vicario"
- Re: session not working on a php page
- From: C. (http://symcbean.blogspot.com/)
- Re: session not working on a php page
- From: Michael Fesser
- Re: session not working on a php page
- Prev by Date: How to Choose an Unlimited Web Hosting for free
- Next by Date: Re: session not working on a php page
- Previous by thread: How to Choose an Unlimited Web Hosting for free
- Next by thread: Re: session not working on a php page
- Index(es):
Relevant Pages
|