473,288 Members | 1,693 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,288 software developers and data experts.

session variables getting overwritten

Hello All

I have 2 websites both using different style sheets (.css). The stylesheets
are stored in a session variable and get set at the time the site gets
invoked. What is happening is something like this.

I bring up the first site and navigate around. Everything is okay. The
stylesheets are correct and so on and so forth. When I click on a link to go
to the other site from the first site (I create a new instance of the
browser), that site comes up fine too, but the stylesheet of my first site
is reset to the stylesheet of the new site that I just opened.

Both these sites are mirror images of each other - i.e. they share the same
variables and represent similar information.

Is there any way to separate the session variables so that they dont clobber
each other.

Thanks
Aug 2 '05 #1
4 2278
Is this two web applications ? If yes, they shouldn't share the session
variables. For a start you could try to see which sessionid you have on both
sites...

--
Patrice

"Rahul Chatterjee" <ra***@benesysinc.com> a écrit dans le message de
news:Oa**************@TK2MSFTNGP09.phx.gbl...
Hello All

I have 2 websites both using different style sheets (.css). The stylesheets are stored in a session variable and get set at the time the site gets
invoked. What is happening is something like this.

I bring up the first site and navigate around. Everything is okay. The
stylesheets are correct and so on and so forth. When I click on a link to go to the other site from the first site (I create a new instance of the
browser), that site comes up fine too, but the stylesheet of my first site
is reset to the stylesheet of the new site that I just opened.

Both these sites are mirror images of each other - i.e. they share the same variables and represent similar information.

Is there any way to separate the session variables so that they dont clobber each other.

Thanks

Aug 2 '05 #2
The web site is the same but for different clients, they do different
things - for example client A I could be displaying their HealthCare info
and for Client B I could be accepting data. The general look and feel of the
website is the same and they all work of common pages. When each client
enters the website through their own url, they get redirected to a common
page which deciphers who the client is and then opens up appropriate pages
for them and sets the appropriate stylesheets for them. The values of the
stylesheets are set in session variables.

Shouldnt the sessionIDs be different if we open up the sites in separate
instances of browsers? How could one sessionID be the same as the other if
the browsers are different? How would you check the sessionID? Is it just
response.write .......Excuse my questions but I am a relative newbie to
this.. COuld you explain this to me a little more elaborately

Thanks

"Patrice" <no****@nowhere.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
Is this two web applications ? If yes, they shouldn't share the session
variables. For a start you could try to see which sessionid you have on both sites...

--
Patrice

"Rahul Chatterjee" <ra***@benesysinc.com> a écrit dans le message de
news:Oa**************@TK2MSFTNGP09.phx.gbl...
Hello All

I have 2 websites both using different style sheets (.css). The stylesheets
are stored in a session variable and get set at the time the site gets
invoked. What is happening is something like this.

I bring up the first site and navigate around. Everything is okay. The
stylesheets are correct and so on and so forth. When I click on a link to go
to the other site from the first site (I create a new instance of the
browser), that site comes up fine too, but the stylesheet of my first

site is reset to the stylesheet of the new site that I just opened.

Both these sites are mirror images of each other - i.e. they share the

same
variables and represent similar information.

Is there any way to separate the session variables so that they dont

clobber
each other.

Thanks


Aug 2 '05 #3
I just found out that when I open the link from within the first session,
the browser retains the first sessionID . If I open a new browser and
explicitly type in the URL, a new session ID is generated. In the first
method, I open the link using target="new"

Is there a way to create a new sessionID in the former manner

thanks
"Patrice" <no****@nowhere.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
Is this two web applications ? If yes, they shouldn't share the session
variables. For a start you could try to see which sessionid you have on both sites...

--
Patrice

"Rahul Chatterjee" <ra***@benesysinc.com> a écrit dans le message de
news:Oa**************@TK2MSFTNGP09.phx.gbl...
Hello All

I have 2 websites both using different style sheets (.css). The stylesheets
are stored in a session variable and get set at the time the site gets
invoked. What is happening is something like this.

I bring up the first site and navigate around. Everything is okay. The
stylesheets are correct and so on and so forth. When I click on a link to go
to the other site from the first site (I create a new instance of the
browser), that site comes up fine too, but the stylesheet of my first

site is reset to the stylesheet of the new site that I just opened.

Both these sites are mirror images of each other - i.e. they share the

same
variables and represent similar information.

Is there any way to separate the session variables so that they dont

clobber
each other.

Thanks


Aug 2 '05 #4
If the page you are jumping to is in the same application then there will be
only one session. You need to have 2 applications. You should be able to do
this by mapping 2 virtual directories to a single physical directory. Then
jump between virtual directories to have separate sessions.

--
--Mark Schupp
"Rahul Chatterjee" <ra***@benesysinc.com> wrote in message
news:uE**************@TK2MSFTNGP10.phx.gbl...
I just found out that when I open the link from within the first session,
the browser retains the first sessionID . If I open a new browser and
explicitly type in the URL, a new session ID is generated. In the first
method, I open the link using target="new"

Is there a way to create a new sessionID in the former manner

thanks
"Patrice" <no****@nowhere.com> wrote in message
news:O9**************@TK2MSFTNGP10.phx.gbl...
Is this two web applications ? If yes, they shouldn't share the session
variables. For a start you could try to see which sessionid you have on

both
sites...

--
Patrice

"Rahul Chatterjee" <ra***@benesysinc.com> a écrit dans le message de
news:Oa**************@TK2MSFTNGP09.phx.gbl...
> Hello All
>
> I have 2 websites both using different style sheets (.css). The

stylesheets
> are stored in a session variable and get set at the time the site gets
> invoked. What is happening is something like this.
>
> I bring up the first site and navigate around. Everything is okay. The
> stylesheets are correct and so on and so forth. When I click on a link to
go
> to the other site from the first site (I create a new instance of the
> browser), that site comes up fine too, but the stylesheet of my first

site > is reset to the stylesheet of the new site that I just opened.
>
> Both these sites are mirror images of each other - i.e. they share the

same
> variables and represent similar information.
>
> Is there any way to separate the session variables so that they dont

clobber
> each other.
>
> Thanks
>
>



Aug 2 '05 #5

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

Similar topics

5
by: Martien van Wanrooij | last post by:
Some time ago I already posted a question about a site that consists of several pages where the visitor, on every page can answer one or two questions in order to fill out an intake for for an...
5
by: Newton | last post by:
Hi, I got here the following problem. I am programming web application for examing students. After student will log on I need to keep his ID, Privileges, Login, Password for manipulating with...
2
by: Remco Groot Beumer | last post by:
Hello I've created an ASP.NET page, which uses some variables which are set after login. When person A logs in, a new public object is instanced (i'm not sure if that is a correct word), after...
13
by: Simon Matthews | last post by:
I am having issues with the right way to architecture the following (using c# asp.net):- The question I have is how best pass the collected data from one web page for use in another. The...
9
by: Randy | last post by:
Hello, I'm having a strange problem. I've got a .NET web app which uses Session variables. Sometime, not all the time, they get cross threaded...that is...one user will have another user's Session...
2
by: maxkumar | last post by:
Hi, I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website has been running for about 1.5 years now. In the past, we used to have random cases of session variables getting...
12
by: MrHelpMe | last post by:
Hello again all, I've finished my whole application and now I don't like the whole session variables that I am using. I have a form, user fills in info clicks submit and using CDOSYSMail an...
13
by: SAL | last post by:
Okay, don't bash me to hard for my design on this app, it's my first web app and it's in production. My basic design is using Datatables created via the designer with a business logic class in...
1
by: Ramchandar | last post by:
Hi, I have an ASP.Net web application hosted in my local server with IIS 5.0 as web server. This worked fine with no issues. So I tried hosting the same into the server machine where I have IIS...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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
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: 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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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.