[pmwiki-users] Print variables collected with Build Forms from $_SESSION to a wiki page

Radu radu at monicsoft.net
Thu Aug 4 15:19:57 CDT 2005


session_start() creates a session or resumes the 
current one based on the current session id 
that's being passed via a request, such as GET, POST, or a cookie.

... so it's pretty much just up to you adding the 
session ID from the page, as such:

<a href="page2.php?' . SID . '">page 2</a>

... 'cos I don't like to depend on cookies (and 
I'm lazy). If you have privacy problems, just 
place SID in a hidden form element and use POST over SSL.

Pretty much a matter of RTFancyM :)

Good luck.


At 11:17 AM 8/4/2005, François Bekaert wrote:

>How does I write $_SESSION['UserName'] in the wikipage to be replaced by his
>value ?

Cheers,
Radu
(www.monicsoft.net) 





More information about the pmwiki-users mailing list