close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Session variable does not appear to set in PHP

Thread began 1/03/2010 6:15 pm by evansg7124312885 | Last modified 3/15/2016 7:13 pm by anonymous | 6120 views | 4 replies |


Session variable does not appear to set in PHP

I am having no luck getting a session variable to set in PHP. This can be viewed and tested at the starting page below. The session variable (User Email) should appear above the password text box. I tried creating a record set that filters off of the session variable, no luck in that route either. Is there something that I am missing in Session Variable requirements that prohibits this operation? 2 different ISPs are showing an identical problem with this operation.

The create account page built in Security Assist was not checking for new users. To correct I created a plain version in Dreamweaver which then goes to assign an an SHA1 password with Data Assist and complete account creation.

The starting page in question: registration.php

if (!session_id()) session_start();
if (isset($_POST["Submit"])) {
$_SESSION["FM_User_Email"] = "".((isset($_POST["txt_Email"]))?$_POST["txt_Email"]:"") ."";

Any help is appreciated, Gary Evans

Sign in to reply to this post

Office Guy-172461

Test session management on your server

See if this article provides any clues:

Sign in to reply to this post

Jason ByrnesWebAssist

The session test that office guy suggests is a good place to start, you can download a copy of the sessionTest.php script here:

If the session test is is successful, here are a few thing to double check:
1) Make sure the code for setting the FM_User_Email session is on the registration page.

2) make sure it is before any other behavior that may have a redirect, if you are not sure, post a copy of the registration.php page so we can examine the code.

3) On the page you wish to display the session variable, add the following at line 1:

<?php if(!session_id()) session_start(); ?>
Sign in to reply to this post


Issue appears resolved

Thanks to Office Guy and Jason. The tool provided to check the server session worked as expected. It ended up being both of Jason's suggestions that fixed this one, the first page needed the setting of the session variable moved and the second screen needed the code pasted to line 1 to get the session variable to display.

Thanks again to both for the assistance,


Sign in to reply to this post



This post has been deleted.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...