Hi
In our Application there are 6 servers are currently running in production.All servers are
connected to the load balancer etc..
The problem:
First i can login successfully(consider i am a manager).So i need to view the details for
other employees (for checking the course, certification,status etc..)
First i have enter one employee id and click the submit button means,this employee id stored
in session and display the all records related to the employee.
then i have enter the another employee id and click the submit button,the details are
display incorrect(showing previous employee data).This is my problem.
My doubt:
why second time, display the records incorrect?latest employee id stored in session
means,that session values stored in different server? or same server?
How to solve this issue?
suppose you suggested stored in session value as database,and retrive that value easily,
our Apllication in huge one.so how to change the workflow structure?
kindly help me to solve this issue..
Many thanks
Senthilkumar.K
i have added some extra information
I can explain you in a better way and give you the code snippet for reference.
The application was developed some 8 years ago for only one Application server. Due to the increase of the load, recently we upgraded that to 6 Application servers and connect via Load Balancer (Sticky method).
The system is very huge and has more than 2 million lines of code and we will not be able to change the code (like storing session info. in database).
Also the Load Balancer is following the sticky method and so will connect one user to only one server till his session exists.
User authentication happens through SSO (Single Sign-On), so the user's don't have issue in using the application. We didn't find any session issue also at this part.
There is an option thru which the managers and administrators can set the application (override) to run as any of their employee and check their transcripts. Till they click on "Clear override", the application used to maintain the session as the Employee of whom the manager override.
The manager detail will be stored as setcookie("Person_id",$person_id);
The overridden employee detail will be stored as setcookie("CK_fake_id",$override); and
$_SESSION['u_sess'] = $u_sess;
But now, when the manager overrides to any of the user, it stores the value in the session as given above.. but when I navigate to another page, the override session is going invisible and the page gets back my Id and not staying in my employees Id.
This is happening after we upgraded the application to 6 servers.
What could be the problem? Kindly help us resolve this.