473,757 Members | 2,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2302
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***@benesysi nc.com> a écrit dans le message de
news:Oa******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP10.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***@benesysi nc.com> a écrit dans le message de
news:Oa******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP10.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***@benesysi nc.com> a écrit dans le message de
news:Oa******** ******@TK2MSFTN GP09.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***@benesysi nc.com> wrote in message
news:uE******** ******@TK2MSFTN GP10.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******** ******@TK2MSFTN GP10.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***@benesysi nc.com> a écrit dans le message de
news:Oa******** ******@TK2MSFTN GP09.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
2017
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 investment advice. So in the page question1.php = a form "action = question2.php" and in question2.php the variables (results of the form) are registered to the session. What I still didn't succeed to is the following: let us say the customer is...
5
4476
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 other functions. All these information I will keep by Session = "2" Session = "Student"
2
1428
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 which the variables are set. The problem occurs when person B logs in at the site. After he logs in, all the variables of person A are overwritten with the new ones. How can I prefent this (I think a new instance need to be created every time
13
1736
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 question I have is how best pass the search criteria from the first page to the second. The search criteria exists as a structure and is filled when the user presses the 'Search' button on the first page.
9
3193
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 variable(s) data assigned to them. I can't figure out why. I've read that other people are having this problem too but I haven't found a resolution yet. Can someone please tell me how I might go about fixing this? Thanks
2
4253
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 lost, but not frequently. However, since the past 2 weeks, I am noticing an alarming increase of such session variables lost cases. My application log shows about 20-30 such errors every day. We have not changed anything at the server for a long...
12
3843
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 email link gets created with an encoded query string. i.e http://www.yahoo.ca?#$@%@&#%#$@&^@%# which translates into http://www.yahoo.ca?userID=54&LocationID=Denver. Now when the user get's this email and clicks on the link I have a
13
3069
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 between the datatable and ObjectDataSources. In one page I had a Gridview with select enabled. When an row in the grid is selected, I retrieve the SelectedValue, store the value in a Session variable and redirect the response to another web page,...
1
1836
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 6.0 as web server. I am having an issue : Onclick of the submit button the session variables are getting cleared. I don’t know why it is happening. I am not able to find why and where the session variables are getting cleared. Is there any setting...
0
9487
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10069
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9884
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8736
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7285
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6556
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3828
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.