473,800 Members | 2,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

On Session_OnStart () getting fired when going from page to page at the same level as the global.asa

This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accoun tid") =
"123456" within an asp page and then response.redire ct to the next page and
immediately response.write session("accoun tid") and I get back nothing.
But if I set a session variable session("accoun tid") = "123456" within an
asp page and response.redire ct to a page in a sub directory and immediately
response.write session("accoun tid") I get back 123456 on the screen.
Please help.
Jul 19 '05 #1
3 2335
Steve,

Looks like the Session_OnStart is not firing, probably because the folder is
not set up as an application, etc.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:eu******** ******@tk2msftn gp13.phx.gbl...
This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accoun tid") =
"123456" within an asp page and then response.redire ct to the next page and immediately response.write session("accoun tid") and I get back nothing.
But if I set a session variable session("accoun tid") = "123456" within an
asp page and response.redire ct to a page in a sub directory and immediately response.write session("accoun tid") I get back 123456 on the screen.
Please help.

Jul 19 '05 #2
Manohar,

The folder is setup as an application and I have tested the global.asa and
it is firing on eachpage load in the the root directory. I set in the
Session On Start in the global.asa a session variable session("accoun tid") =
"000000" then I call page1.asp in the root and issue session("accoun tid") =
"123456" and then response.write session("accoun tid") and I get 123456 on
the screen. I then response.redire ct to page2.asp and response.write
session("accoun tid") and I get 000000 on the screen. The Global.asa
session on start is getting fired on every page load in the root. This is
the first time I have ever seen this happen and I have done several ASP
applications. Any Ideas would be helpful. And, If anyone is wondering,
cookies are turned on and if I use cookies to pass data from page to page it
works fine. I am trying to move to session variables so when I port to
ASP.NET I can use munging instead of cookies. Thanks for the help.

Steve Mauldin

"Manohar Kamath [MVP]" <mk*****@TAKETH ISOUTkamath.com > wrote in message
news:OR******** *****@TK2MSFTNG P10.phx.gbl...
Steve,

Looks like the Session_OnStart is not firing, probably because the folder is not set up as an application, etc.

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:eu******** ******@tk2msftn gp13.phx.gbl...
This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accoun tid") =
"123456" within an asp page and then response.redire ct to the next page

and
immediately response.write session("accoun tid") and I get back nothing. But if I set a session variable session("accoun tid") = "123456" within an asp page and response.redire ct to a page in a sub directory and

immediately
response.write session("accoun tid") I get back 123456 on the screen.
Please help.


Jul 19 '05 #3
Thanks all for the help. I was able to figure this out. Session.abandon
does not actually execute until the page is completed and I had an
session.abandon in an included header page. so the session variable that was
set was getting
wiped at the end of the page, Doh!

"Steve Mauldin" <st**********@h otmail.com> wrote in message
news:eu******** ******@tk2msftn gp13.phx.gbl...
This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accoun tid") =
"123456" within an asp page and then response.redire ct to the next page and immediately response.write session("accoun tid") and I get back nothing.
But if I set a session variable session("accoun tid") = "123456" within an
asp page and response.redire ct to a page in a sub directory and immediately response.write session("accoun tid") I get back 123456 on the screen.
Please help.

Jul 19 '05 #4

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

Similar topics

0
3060
by: James | last post by:
Running on Xp with WSAD5.0.1 (acts the same in 5.1) an action class is simply not being called when it is configured identically with others called in the same manner. It never gets into the action class but kicks out with a null pointer exception. There is mention of the RequestProcessor which I was going to customize but did not. An html:link with path of mystuff\mtstuffAction.do?reqType="myType" which is exactly they way other nav...
0
1302
by: wannaknow | last post by:
When I set a cookie in global.asa in the sub session_onstart, even if I have "privacy" in IE 6.X set to "block all cookies" the cookie is still set, and I can get it on other pages. I can't find an article that addresses this as a specific issue. Why does the browser get the cookie when it is set in the session_onstart event even when I have "block all cookies" set?
0
2720
by: bb | last post by:
Hello In my Session_OnStart in Global.asa, I am setting some cookies. One of them, I set as follows: dim UserID UserID = Request.ServerVariables("LOGON_USER") Response.Cookies("User")("ID") = UCASE(UserID) When I immediately log the cookie value retrieved from
31
2954
by: Prabhat | last post by:
Hi All, The "Session_OnStart" event doesnot fire if the website has .htm file as the startup document. If I change the extension of the default document from ..htm to .asp then I can see the event fires, But now I cant change the default page to .asp. How can I make the Session_OnStart fire in that situation? Please suggest. Thanks
6
1711
by: Binoy | last post by:
Hello, I am getting this error once in a while from my web sites. When I will refresh web browser, it goes off and sites are working fine. Directory structures and file names are as below- C:\WWW - corporate site, C:\WWW\default.aspx is the default page and this site works fine.
7
1399
by: sunil philip | last post by:
How do i identify the page that fired a method? e.g. page1.html ----------- <Head> <script> document.write(myfun()); </script>
20
7015
by: weston | last post by:
I've got a piece of code where, for all the world, it looks like this fails in IE 6: hometab = document.getElementById('hometab'); but this succeeds: hometabemt = document.getElementById('hometab'); Has anyone ever seen anything like this before, or am I dreaming?
0
1461
by: Artur | last post by:
After trying to solve this, I noticed another strange thing. When in secure connection Page_Load method of page is not invoked (Load event not fired). I looked where this method is assigned to this event, it's in On_Init method. Tested, this method is not invoked too. This happens only in when in SSL. Can anyone help me? Thanks. Artur
2
2167
by: parkchan | last post by:
Hi all, I've got an weird problem with Application variables in Global.asax.vb. I have three Application variables set up in Session_OnStart event and I'm displaying the values of those variables in an .aspx page. It works fine in the development server, but it only sets up the first Application variable and I can only see the first variable value in the same .aspx page in the live server. ** Development Server **
0
9690
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
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10504
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...
0
10274
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9085
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
7576
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
5469
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...
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.