Skip to main content
Known Participant
February 16, 2007
Question

MM_Username session variable not being passed on...

  • February 16, 2007
  • 4 replies
  • 1344 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 has been closed for replies.

4 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....
Inspiring
February 21, 2007
dhewuidhjklhdwidh wrote:
> I can log in correctly as i am redirected to the correct page, but the session
> variable will not appear...

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

If you're doing this on your own computer, have you set up
session.save_path correctly in php.ini?

You need to remove the semicolon from the beginning of the line and
point to a temporary folder. On most Windows systems, it should look
like this:

session.save_path "C:\WINDOWS\Temp"

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Known Participant
February 21, 2007
Here's my php.ini file,



I changed the session.save_path to what you said, but still not luck...
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.