[dokuwiki] Re: Is there any way to pass information from one instance of doku.php to another - i.e. for an action?
- From: Chris G <cl@xxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 1 Jul 2011 11:19:32 +0100
On Thu, Jun 30, 2011 at 06:39:57PM +0200, Michael Hamann wrote:
[snip]
> > One could simply write to a file (I have resorted to this approach
> > previously) and read it at the called end but it feels as if there
> > should be a better way to do it - or at least a built in way of some
> > sort, like sort of 'super globals'.
>
> The PHP way for storing information during requests is the session. The
> session is however shared between all requests in a window/browser
> session, i.e. you don't know that the information in the session is
> really from the page the user comes from (and not from the page the user
> has just opened in a new tab) but that's a problem you also get when you
> write your own files.
>
Thank you, I think sessions will provide me with what I need. Another
area of PHP I need to dig into! :-)
--
Chris Green
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist
Other related posts: