Jump to content

*CLOSED* Double post - Please respond to easy question


scs

Recommended Posts

I use dreamweaver so my code is corrent. I'm just not using the right code. I have the session started. When the user logs in I set some session variables.

[code]
  $_SESSION['username'] = "sdgjksndgjsg";
  [/code]

Now my server uses php4. I'm not sure if that makes a difference. All those session variables are blank when I try to use them. Please respond quickly. I'm in a hurry to finish a project!
Link to comment
Share on other sites

[code]
<?php
session_start();
session_register("User_ID");
?>
[/code]
when you started your session did you register the variable name

[code]
<?php
session_start();
?>
[/code]

second did you start every page with session_start();
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.