Re: [PHPLIB] Login caching problem ? From: Nikolas Hagelstein (pulp <email protected>)
Date: 01/27/00

Hi,

> > Is it really necessary to replace every link (<a href=myurl>foo</a> ) with
> > something like : <a href="<? echo ($seess->url($myurl)) ?>" >foo</a> > ?
>
> yes it definitely is! this is becouse you won't know in advance wether
> your users do have cookies enabled or not. get mod is usally used as
> fallback mode. I don't see any reason why one wouldn't use fallback mode
> unless you decide to only serve customers who trust in cookies.
>
Hmm i see...But in my case it would be a lot of work to change all of my links
to $sess->url() because i have lot of links which look like :
<a href="index.php3<?echo "?a=.$."&b=".$b...... ?>"> what would you suggest
is the best way to convert them to the $sess->url() style ? How does
$sess->url() appends the session varible to the href ? does it automaticly
determinate if a ? or & has to be used for parameter seperation or has it to be
the first parameter everytime?
There is another problem i will have :
I'm using two frames: one for navigation and one for displaying ...
The navigation frame is plain html at the moment, but it contains links to
protected pages...so if i would make use of the $sess-url() variant i will have
to put the page() stuff in those navigation frame that would cause 2 loginforms
beeing displayed when loading the associated index.html - one in the nav frame
and one in the display frame - :|

> it is not about stableness, in my point of view it is more a kind of a
> stylish question. if possible, use cookies since session variables do not
> look so cool in your url and do suck when people try bookmarking some
> pages of your webapp. however, do always use $sess->url() since your app
> will break for all non-cookies out there. this function will only append
> the session variable if the client has cookies disabled, so it's exactly
> what you want.
So you think that the effekt of which makes the loginscreen being displayed
again again is caused by disabled cookies ? I also appears on systems which
cookies enabled

> and? did you test your site with cookies disabled, did it work?
Not yet ...unfortunatly -> you know the 24h/day problem ? ;)
bye,
              Niko
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.