Skip to main content
Known Participant
February 16, 2007
Question

MM_Username session variable not being passed on...

  • February 16, 2007
  • 10 replies
  • 1349 views
I am using the Log In User server behaviour, but when i try and call the session variable MM_Username on the following page, it doesn't seem to be there... Here's the code from the log in page...

This topic is closed to new replies. Start a new post to keep the conversation going.

10 replies

Known Participant
February 22, 2007
David, thanks so much for your time and experience, i can stop banging my head off my desk now...

Cheers,

Hugh.
Participant
March 15, 2009
Thanks David!

My version of DW CS4 is not adding the session_start code automatically. I had to manually put that in, then the pages display correctly. Is this a bug with DW or perhaps I need to update my software?
Known Participant
February 17, 2007
Yeah - if i call the session variable on the same page as it is created, it appears fine, but i can't get it to appear when i move onto the next page....
Known Participant
February 21, 2007
I'm still having problems with this - I tried creating the most simple two pages i could, a log in page with two text fields and a submit button, and then a page that will display the session variable...
I can log in correctly as i am redirected to the correct page, but the session variable will not appear...

Here's the code for the two pages...

I am running Apache 2.2.4 and MySQL 5.0 - Is there perhaps any reason this might not work on my own machine?

Known Participant
February 16, 2007
and here is the code for the following page...

Inspiring
February 16, 2007
Did you put:

<?php session_start(); ?>

at the top of the following page to enable sessions?


--
Gareth
http://www.phploginsuite.co.uk/
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.