Canadian Mysteries

  • Front Page
  • Contact
  • Log in
  • « fix numerous broken links etc
  • Transfer CanMys to new server cluster »

php session variables not working

Posted by sarneil on 23 Sep 2008 in Activity log

Access to the interpretations and teachers' notes sections is restricted. Authenticated users get values placed into session variables which are then checked on the relevent pages. For some reason, on the new server those values cannot be read from the session array. It did not appear that the subsequent pages started a new session (looked up the php reference on that and no files were created in the sessions dir), just that they couldn't read the values in the session variable. Nor did it appear that the problem resulted from different servers in the cluster writing to different temp or session dirs. Ryan checked on that for me.

I ended up passing the SID explicitly in the URL as a GET argument, and even though the subsequent pages make no use of that GET argument, the session array values are now available. So, it now works, but we're not sure why.

This entry was posted by Stewart and filed under Activity log.

Canadian Mysteries

The Canadian Mysteries site consists of a production site containing 12 mysteries, a containing shell and 30 mysteryquests; and a database-driven development site. HCMC took over tech support in summer 08. This blog documents work done on the site from Sept 08. Earlier work is documented in the depts blog in posts prepended with CanMys
  • Home
  • Recently
  • Archives
  • Categories
  • Latest comments

Search

Categories

  • All
  • Activity log
  • Announcements
  • Tasks

XML Feeds

  • RSS 2.0: Posts
  • Atom: Posts
What is RSS?

Recent Posts

  • Added Sarah Taekema as new Mysteries Admin
  • fix urlencode problem on photo.php pages
  • Batch process images
  • moved learning materials pages
  • de-orphaning links pages on Franklin site
  • Request for teacher locations
  • fix broken links in mysteryquest
  • change backend database pointers
  • landing pages for parks canada
  • Franklin Google search styled

Sidebar 2

This is the "Sidebar 2" container. You can place any widget you like in here. In the evo toolbar at the top of this page, select "Customize", then "Blog Widgets".

This collection ©2022 by admin • Help • Photo albums software