Jump to content

Archived

This topic is now archived and is closed to further replies.

scs

*CLOSED* Double post - Please respond to easy question

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!

Share this post


Link to post
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();

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

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.