Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [12-2006 Date Index] [Date Next] || [Thread Prev] [12-2006 Thread Index] [Thread Next]

[dokuwiki] Session variables being reset?

  • From: Raam Dev <raamdev@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 05 Dec 2006 15:16:31 -0500
On test.php I have the following:

<?php
session_start();
$_SESSION['myvar'] = "abc123";
?>

Then, from anywhere within DokuWiki, for example at the top of /lib/tpl/default/main.php, I add the following:

session_start();  // tried with and without this line
echo $_SESSION['myvar'];

The session variable appears to be empty and does not echo "abc123". However, if I add the following to main.php:

session_start();
$_SESSION['myvar'] = "abc123";
echo $_SESSION['myvar'];

everything works as expected. Why wouldn't the session variables carry over when they're set on a page outside DokuWiki? Am I missing something?

Thanks!
Raam
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.