+1  A: 

can you post a bit more of your session code? some basics:

  • did you start your session? (session_start() )
  • did you check whether your save path has proper permissions (not mentioned in OP)
  • session.save_path is really just the directory sessions will be saved into. if you are on a shared service, it may be better to set it to a different directory than the default temporary directory (as your sessions would be intermingled with other app's sessions as well, and could potentially lead to a greater chance of session collision)
  • if you are altering session configurations (like save_path, these must be set previous to calling session_start().
Owen
A: 

Oops. I found that I was not using the correct syntax when assigning values:

Does not work:

$_SESSION['$s_firstvar'] = 3;

Does work:

$_SESSION['s_firstvar'] = 3;
Zack Peterson
just to be nit picky, you should get in the habit of quoting your variables:$_SESSION['s_firstvar'] = 3;(for example)
Owen
indeed, not quoting them creates a constant and some overhead
gradbot
And ++ on the engie avatar! ;-)
Wilco
Edit: quoted variables per Owen's suggestion.
Zack Peterson