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

Cannot pass session variable

Dear all,

I have a session variable session("loginid) which can be
passed from A.asp to B.asp. Then In B.asp I have a hyperlink to C.asp
e.g. < A href..C.asp>. The session variable cannot be
passed to C.asp. The session variable is empty. What can I do to debug
this problem?

Thanks

Sep 25 '07 #1
3 4744
Gazing into my crystal ball I observed hon123456 <peterhon321
@yahoo.com.hkwriting in news:1190730001.062425.173670@
50g2000hsm.googlegroups.com:
Dear all,

I have a session variable session("loginid) which can be
passed from A.asp to B.asp. Then In B.asp I have a hyperlink to C.asp
e.g. < A href..C.asp>. The session variable cannot be
passed to C.asp. The session variable is empty. What can I do to debug
this problem?

Thanks

The session variable should be there, unless:
1. you are destroying it
2. you are overwriting it with an empty value
3. you get up and take a hour long drive, then try the page
4. you are on another server

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Sep 25 '07 #2
hon123456 wrote:
Dear all,

I have a session variable session("loginid) which can be
passed from A.asp to B.asp. Then In B.asp I have a hyperlink to C.asp
e.g. < A href..C.asp>. The session variable cannot be
passed to C.asp. The session variable is empty. What can I do to debug
this problem?
1. Session variables are not "passed" from one page to another. One page
sets a session variable value, which is stored in the server's memory.
When the next page is requested, it can read the value of the session
variable if it has been previously set.
2. Are all three pages in the same application/website? If not, you will
need to find another way to make the value available across
applications/websites: probably a database of some sort. If they are in
the same application, you need to show us how to reproduce the symptom
so we don't have to keep guessing.

This might help: http://www.aspfaq.com/show.asp?id=2157

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 25 '07 #3
Bob Barrows [MVP] wrote on 25 sep 2007 in
microsoft.public.inetserver.asp.general:
hon123456 wrote:
>Dear all,

I have a session variable session("loginid) which can be
passed from A.asp to B.asp. Then In B.asp I have a hyperlink to C.asp
e.g. < A href..C.asp>. The session variable cannot be
passed to C.asp. The session variable is empty. What can I do to debug
this problem?
1. Session variables are not "passed" from one page to another. One page
sets a session variable value, which is stored in the server's memory.
When the next page is requested, it can read the value of the session
variable if it has been previously set.
2. Are all three pages in the same application/website? If not, you will
need to find another way to make the value available across
applications/websites: probably a database of some sort. If they are in
the same application, you need to show us how to reproduce the symptom
so we don't have to keep guessing.

This might help: http://www.aspfaq.com/show.asp?id=2157
Also using session("loginid") in stead of session("loginid) could help.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 25 '07 #4

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

Similar topics

2
by: mr_burns | last post by:
Hi, i am getting the following errors when running my php script: Warning: Cannot send session cookie - headers already sent by (output started at ...
4
by: Gerhard Pretorius | last post by:
ON Win 2003 IIS6, Since yesterday, (12 Aug 2003) for some strange reason, (after installing WindowsServer2003-KB823980-x86-ENU.exe) I cannot pass the Request object to to VB COM DLL. I have...
5
by: eagletender | last post by:
I am simply trying to pass a variable to another page. I know my second page can do Request("str") to retrieve that variable, but how do I pass it in the first place? I tried...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: crjunk | last post by:
I've got an aspx page that allows the user to select different options whenever they want to run a report. On this page, I have added an additional text box for the user to enter in comments about...
3
by: Wayne Wengert | last post by:
I have an application where a session variable is set in an ASPX page, The process calls an ASP page and when in that page the session variable appears to be null. How can I pass a session variable...
17
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the...
1
by: aperez | last post by:
Hi, I need to pass a session variable from an ASP.NET v1.1 page to a v2.0 page, but haven't been able to do it. The reason is because I need to embed the 1.1 page in my intranet portal tool so I...
4
tolkienarda
by: tolkienarda | last post by:
Hi all I work for a small webdesign company and we have remote hosting. i built a mysql database with phpmyadmin on the server. i then downloaded and modified a php login page. i am continuing to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.