You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Jochen Topf <jo...@remote.org> on 2002/09/25 17:52:58 UTC

cookie-less sessions

I am using cookie-less-sessions with Embperl-2.0b8. This works ok, but I
always have sessions, even if I didn't use %udat. I am trying to have a web
site that doesn't use sessions until you log in, then uses sessions and
if you logout it gets rid of the session again. This seems to work fine with
cookie-sessions, but using the URL-rewrite-method I always get the session id
rewriting, even if I didn't touch %udat at all.

Jochen
-- 
Jochen Topf  jochen@remote.org  http://www.remote.org/jochen/  +49-721-388298


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: cookie-less sessions

Posted by Gerald Richter <ri...@ecos.de>.
>
> This didn't work, but
> $r -> session_id(undef);
> worked.
>

Yes, of course it a method

> While the 'EMBPERL_UID=...' is not inserted any more, the '?' still is.
>

Setting it to undef should also avoid the '?'. Don't know why this happens.
I have to look more deeply into that

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: cookie-less sessions

Posted by Jochen Topf <jo...@remote.org>.
On Thu, Sep 26, 2002 at 10:24:25AM +0200, Gerald Richter wrote:
> > I am using cookie-less-sessions with Embperl-2.0b8. This works ok, but I
> > always have sessions, even if I didn't use %udat. I am trying to have a
> web
> > site that doesn't use sessions until you log in, then uses sessions and
> > if you logout it gets rid of the session again. This seems to work fine
> with
> > cookie-sessions, but using the URL-rewrite-method I always get the session
> id
> > rewriting, even if I didn't touch %udat at all.
> >
> 
> Yes, because Embperl needs to know at the start of the page if it should
> insert session ids or not.
> 
> If you know that you will don't need sessions (i.e. users is not logged in
> and you will not use %udat in the page), just do a
> 
> [-
> $r = shift ;
> $r -> session_id = undef ;
> -]
> 
> and no ids should be inserted in the page

This didn't work, but
$r -> session_id(undef);
worked.

While the 'EMBPERL_UID=...' is not inserted any more, the '?' still is.

Jochen
-- 
Jochen Topf  jochen@remote.org  http://www.remote.org/jochen/  +49-721-388298


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: cookie-less sessions

Posted by Gerald Richter <ri...@ecos.de>.
> I am using cookie-less-sessions with Embperl-2.0b8. This works ok, but I
> always have sessions, even if I didn't use %udat. I am trying to have a
web
> site that doesn't use sessions until you log in, then uses sessions and
> if you logout it gets rid of the session again. This seems to work fine
with
> cookie-sessions, but using the URL-rewrite-method I always get the session
id
> rewriting, even if I didn't touch %udat at all.
>

Yes, because Embperl needs to know at the start of the page if it should
insert session ids or not.

If you know that you will don't need sessions (i.e. users is not logged in
and you will not use %udat in the page), just do a

[-
$r = shift ;
$r -> session_id = undef ;
-]

and no ids should be inserted in the page

Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org