Re: [Pas-dev] newbie: no sessions?
Status: Beta
Brought to you by:
mortis
|
From: Mental <Me...@Ne...> - 2003-02-27 03:29:30
|
On Wed, Feb 26, 2003 at 07:02:28PM -0800, Kyle Hayes wrote:
<snip>
>=20
> All the examples function to the extent that they mostly do the right thi=
ng.
> So far, the only thing that appears to be not working are sessions. I can
> see the session files being created in /opt/pas/session-cache. But, on p=
ages
> that have session data, I am getting a new one each time.
>=20
> For example, Example 2 (sets a timestamp in a session on first use) always
> says "this was the first time you've visited this page,..." and has a new
> timestamp for both the current time and session time each time.
>=20
> Did I miss something in the config somewhere?
>=20
> Oddly enough, I _am_ getting session cookies. I've turned on cookie warni=
ngs
> in Mozilla and I am getting cookies sent to me. However, all the example=
=20
> pages act as if there was no session cookie.
>=20
> Any clues?
If I had to hazard a guess, I'd say your psp isnt a session page.
Org::Bgw::Pas::Psp::Compiler pod:
session
<%@ page session =3D "true|false"; %.
This directive controls session behavior. Unless
overridden by the implements directive, this directive
will set the parent object of the generated PSP page
as Org::Bgw::Pas::SessionPage allowing access to a
session() method. It will also make a $session vari-
able available to the psp page.
IF you're getting a session cookie, and you see the sessions being created
in a database/file/whatever, then the only thing I can think of that'd
make sense (and I've done it to) is you're not telling the psp that it's a
sessionpage.... HTH
--
Mental (Me...@Ne...)
I choose to live and to
Lie, kill and give and to
Die, learn and love and to
Do what it takes to step through.
--Tool "46 & 2"
CARPE NOCTEM, QUAM MINIMUM CREDULA POSTERO.
GPG public key: http://www.neverlight.com/pas/Mental.asc
|