Jump to content

Recommended Posts

The code you're using is outdated. I recognize the code as being from phpeasystep, and as has already been pointed out in anther thread you participated in, it makes use of deprecated functions. You need to stop using code and examples from that site. You also need to turn on error reporting, and leave it on while developing. In your php.ini file:

 

error_reporting = -1

display_errors = On

 

Then restart Apache and you should start seeing any errors your code may generate.

Link to comment
https://forums.phpfreaks.com/topic/265712-sessions/#findComment-1361703
Share on other sites

got new script can u help me now i need session as string variable

 

<?php
session_start();
if(!session_is_registered("userName"))
{
header("location:login_form.php");

}
else
{
echo '<h2>Successfully Login <br /> Welcome '.$userName.'</h2>';

echo '<a href="logout.php"> Log Out</a>';
}

  

?>

Link to comment
https://forums.phpfreaks.com/topic/265712-sessions/#findComment-1361720
Share on other sites

my session is registered i read it ,still (im dutch) i dont quite undertand it iread a dutch guide and there stood only register distroy and no action to set the sessions  string into a variable

i have my session registered and it's worKing fine in that way only i can't echo it

and can't maKe it a variable (string)

 

ps my little K isn't worKing sorry for that

Link to comment
https://forums.phpfreaks.com/topic/265712-sessions/#findComment-1361833
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.