Jump to content

userID and memberID sessions issue


Go to solution Solved by mac_gyver,

Recommended Posts

Hi

 

So sorry, I hope this is the last issue I come across and need help

 

I got one side for employers and one side for candidates and both sides were using memberID so what was happening was when I was logged in as a employer, it would log in as a candidate as well so thought that was because both were using memberID so left employers as memberID and changed candidates to userID thinking would solve it but has not so only other thing I can think of is because they are using sessions to store the memberID and userID in a session or could it be of the following line being in both employer and candidate php file script

if(!$user->is_logged_in()){ header('Location: candidate-login.php'); }
if(!$user->is_logged_in()){ header('Location: employer-login.php'); }

or can I use the same $user used in both php files or would I need to change $user in candidate side so is different to the employer side

Link to comment
https://forums.phpfreaks.com/topic/300110-userid-and-memberid-sessions-issue/
Share on other sites

Sorry I'll try to explain it better

 

I login in as userA in the candidate side then if I go to login page on employee side, it thinks I am already signed in to the employee side and has taken me to the employer profile page

 

on employee side it thinks I am logged in as userA from when I logged into the candidate side, I have attached a couple of screenshots of me logged in on candidate profile side and employer profile side

 

candidate-profile-issue.jpg

employer-profile-issue.jpg

Hope that makes it easier to understand the issue I got

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.