1 Jul 2011 12:19
Re: Is there any way to pass information from one instance of doku.php to another - i.e. for an action?
Chris G <cl <at> isbd.net>
2011-07-01 10:19:32 GMT
2011-07-01 10:19:32 GMT
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
--
Chris Green
RSS Feed