473,426 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,426 software developers and data experts.

Urgent Help with Session

Dear All, i have developed an application located on a server that has
a front end and a back end interface, the application uses session
object. when i log on as a backend user and a client user form the same

computer, the sessions conflict together and i get unexpected results,
and i found out that this happenes when one of the sessions ends. Ex:
when i log on as a backend user, and then as a front end one(from the
same computer at the same time), if i log out(destroy the session) as a

front end user the back end user no longer works because the session
variables are destroyed. Any Ideas how to fix that, or is there a
solution in the first place???

Thnx

May 4 '06 #1
3 1394
Meena wrote:
Dear All, i have developed an application located on a server that has
a front end and a back end interface, the application uses session
object. when i log on as a backend user and a client user form the same

computer, the sessions conflict together and i get unexpected results,
and i found out that this happenes when one of the sessions ends. Ex:
when i log on as a backend user, and then as a front end one(from the
same computer at the same time), if i log out(destroy the session) as a

front end user the back end user no longer works because the session
variables are destroyed. Any Ideas how to fix that, or is there a
solution in the first place???

Thnx


Not a PHP problem, but how things work. The session id is stored in a cookie,
and obviously you can only have a one cookie with that name.

The solution is to use two different browsers - not two windows of the same browser.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 4 '06 #2
On Thu, 04 May 2006 05:23:25 -0700, Meena wrote:
Dear All, i have developed an application located on a server that has
a front end and a back end interface, the application uses session
object. when i log on as a backend user and a client user form the same

computer, the sessions conflict together and i get unexpected results,
and i found out that this happenes when one of the sessions ends. Ex:
when i log on as a backend user, and then as a front end one(from the
same computer at the same time), if i log out(destroy the session) as a

front end user the back end user no longer works because the session
variables are destroyed. Any Ideas how to fix that, or is there a
solution in the first place???


One solution is to use different domain names for them.

for example, you could setup www.yourdomain.com to go to the frontend and
backend.yourdomain.com to go to the backend

For testing, you can simply map these domains in your HOSTS file
(/etc/hosts or c:\windows\system32\drivers\etc\hosts I think) and point
them to the ip of your development server.

Cheers,

Ben
May 4 '06 #3
Meena wrote:
Dear All, i have developed an application located on a server that has
a front end and a back end interface, the application uses session
object. when i log on as a backend user and a client user form the same

computer, the sessions conflict together and i get unexpected results,
and i found out that this happenes when one of the sessions ends. Ex:
when i log on as a backend user, and then as a front end one(from the
same computer at the same time), if i log out(destroy the session) as a

front end user the back end user no longer works because the session
variables are destroyed. Any Ideas how to fix that, or is there a
solution in the first place???

Thnx


You can have different names for frontend and backend session
variables: $_SESSION['fe_xxx'] and $_SESSION['be_xxx'].
Using this solution, you must not destroy whole session, just unset
needed session members, i.e. unset($_SESSION['fe_xxx']);

May 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sunnyz | last post by:
hi I wanted to know whether we can store something in Session objects in webservice.My windows application calls the webservice and i want the data to be stored in Session object so that each user...
1
by: Jenny | last post by:
Need urgent help for an unsolved problem. In our ASP web application, we creat a Back button and if user click on this button, it execute history.go(-1) to go back to the previous page. All our...
1
by: sunnyz | last post by:
hi I wanted to know whether we can store something in Session objects in webservice.My windows application calls the webservice and i want the data to be stored in Session object so that each user...
4
by: Nick | last post by:
Hi I am a little stuck. I have a web app which uses cookieless session management. I would like to inform a user when their session has ended but cannot work out how to implement. I thought...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
2
by: Vishal | last post by:
Hello, I am posting some credit card info to the payment server via a similar code. My code is written in VB.NET but uses the same approach. At the end however I do a...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
1
by: sneha123 | last post by:
There will be some 20 questions and for each question there will be 4 choices.what i want to do is to select multiple answers by clicking the checkbox. i m using asp.net,vb.net pls help me we...
6
by: amjad | last post by:
hi i store some value in session object and later try to access it but the value return from session variable is null like Session=txtmyname.Text; Session=txtAge.Text;...
2
by: itsvineeth209 | last post by:
My task is to create login control without using login control in tools. I shouldnt use sqldatasource or any other. I should use only data sets, data adapters and data readers etc. U had created...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.