Jump to content

Recommended Posts

i don't know what is wrong with my session i got every thing right as far as i know.. and when the use rlog in i only get the username as the session register..

the problem is if the user sign into the main page it says welcome and the users screename..

now if the user goes toa nother page the name changes to my sql username..

why does it change to the username i use for my sql?

i got session_start() in every page..

does anyone know why is this please answer as fast as you can.. or i'll have to delet my entire sessions scripts..

forget it.. 5 seconds later i got it.. :) i had the database log in name as $username too.. so the session was reading the username from the database and take it's value instead of the post one..
Link to comment
https://forums.phpfreaks.com/topic/9176-sessions-big-problem/
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.