473,287 Members | 1,560 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,287 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 1391
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.