[chora] session handling

David Mendenhall david@digitalfountain.com
Thu, 16 May 2002 12:09:07 -0700


Sorry, I didn't try it before, but yes, test.php works (registers the
session and properly increments the counter), but if I take the same code
and plug it into cvs.php, the counter gets reset to 1 every time (which is
consistent with a new session being registered every time). Is there
something in the horde includes that would start a new session if some
condition isn't met? Such as not being logged in, or not having some session
variable set?

-david

-----Original Message-----
From: Anil Madhavapeddy [mailto:anil@recoil.org]
Sent: Wednesday, May 15, 2002 7:11 PM
To: David Mendenhall
Cc: chora@lists.horde.org
Subject: Re: [chora] session handling


Did you try horde/test.php ?

If that doesn't work, then play around with PHP until it does ... its
the simplest case of native PHP sessions.

Anil

On Wed, May 15, 2002 at 02:56:20PM -0700, David Mendenhall wrote:
> Session files are being written to the temp dir (lots, in fact, one for
> every link click). I notice that if I call Horde::url, there is a variable
> Horde=5603e87570752d896bca4c8ba8c6149c (or whatever session_id), but if I
> call Chora::url, I don't get that. Is the session only persistent if I
pass
> around that variable? I'm guessing that since I'm not in a
> http:/hostname/horde/chora subfolder, I'm somehow bypassing or confusing
the
> session registration?
>
> -david
>
> -----Original Message-----
> From: Anil Madhavapeddy [mailto:anil@recoil.org]
> Sent: Tuesday, May 14, 2002 6:41 PM
> To: David Mendenhall
> Cc: chora@lists.horde.org
> Subject: Re: [chora] session handling
>
>
> On Tue, May 14, 2002 at 04:49:02PM -0700, David Mendenhall wrote:
> > Could someone enlighten me on how chora (and I guess horde in general)
> > manages sessions?
> > I've set up chora, without using any other horde modules, and have been
> > hacking around in the code, and it appears that I'm starting a new
session
> > every time I click a link.
> > If I call session_id(), it's different every time.
> > I have chora at the root http://chora level, so if the session is passed
> > around in the horde url's, that's probably my problem.
>
> We use native PHP4 session handling ... try out the horde/test.php
> and make sure that your basic session functionality is working.
>
> If it isn't, then start figuring out why (is php successfully
> writing out the session files to the tmp dir?)
>
> Anil
>

--