Page 1 of 1

retrieve session variable

Posted: Tue 19. Apr 2005, 19:31
by elv
Sorry if I seem to ask the same question over and over again, but I badly need to get the values stored into a session...

What I try to do is a kind of "frontend login", but it doesn't need to be inside phpWcms.
I actually use a form BEFORE the visitor goes inside phpWcms to store a login/password in a session variable.

Once inside the CMS it seems I just can't retrieve these values! I tried my best to figure out why, but I still don't have a clue... I may have missed some important information, but I searched everywhere I could here on the forum and on the docu site.
If someone ever achieved this, please help a poor webdesigner :wink:

Posted: Wed 20. Apr 2005, 01:26
by elv
Ok I finally figured out what was wrong. The cache was on, so the session variable content was also cached :(
It is cached when teh script is inside [PHP] tag and also when you call an external content.
I disabled the cache and everything works like a charm.

I know it is not a real solution, but as it's for a small website it isn't mandatory to have the cache enabled.