Re: Where is my mind ?



Hi Ken,

A sample code will not help much...
But here it is :

session_start();

if (!isset($_SESSION["count"]))
$_SESSION["count"] = 1;
else
$_SESSION["count"] ++;

echo $_SESSION["count"];

I know this one works.
Every time I call this script a new session file is created (I don't know
why previous is not reused)... and it remains pretty empty.

Everytime I refresh this page, Apache log file (access.log) reports :

127.0.0.1 - - [29/Apr/2005:17:35:36 +0200] "GET /test.php HTTP/1.1" 200
41765
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 4459
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2974

Any idea what this is (PHPE...) ? It is not my session ID... so ?

--
@+
"Ken Robinson" <kenrbnsn@xxxxxxxxx> wrote in message
news:1114785215.387235.273580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> Matthias Ainsworth wrote:
> > Hi,
> >
> > Strange things happening on my server (a little XP machine...) !
> > Session files (sess_xxxxx...) are created well but they remain
> empty...
> > always ! My session variables never get stored !
> >
>
> Sample code please? Can't debug problems with seeing code.
>
> Ken
>


.



Relevant Pages

  • Creating a New Class with several sub-classes in WMI with VBScript
    ... I would like to know if some sample code exist to create a WMI Class ... I would like to use VB Script to create the class and sub ... Prev by Date: ...
    (microsoft.public.win32.programmer.wmi)
  • Scripting Save Path and File Name for Office Documents
    ... Looking for some information on how to script, sample code, etc for the ... Specify the save file name ... Prev by Date: ...
    (microsoft.public.windows.server.scripting)
  • Re: Re-opening a file
    ... I can't read it back until I run the script again. ... doing X between closing and re-opening the file?". ... instance there are many ways for reading from a file. ... When someone asks you for sample code, ...
    (comp.lang.php)
  • Re: Scripting Active Directory attribute changes.
    ... I can't seem to find the sample code you included. ... users objects, then disable their AD accounts AND modify their description ... > I've enclosed a small shell script written quite some time back, ... >> If there are no tools, if anyone knows of any VBscript website where ...
    (microsoft.public.windows.server.active_directory)
  • RE: MBSA and MSs attempts at "security"
    ... >management etc but the truth is that only a tiny percentage of us has time ... >looking up VB script samples for management on microsoft's web site? ... >to find real and useful sample code for WMI scripting? ... Regarding the access to sample code and library information, ...
    (Focus-Microsoft)