473,466 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Session lost across page

What could the likely cause of a session value being lost when one navigates
to another page and attempts to write that session out:

Page 1

session("u_name") = oRS.fields("u_name")

Navigate to Page 2

Response.write Session("u_name")

....."_name" seems to be empty on Page 2.

What am I doing wrong here?

Thanks
Jason
Jul 19 '05 #1
4 1996
http://www.aspfaq.com/show.asp?id=2157

you also might try

oRS.fields("u_name").value

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
<ja***@catamaranco.com> wrote in message
news:um**************@TK2MSFTNGP09.phx.gbl...
What could the likely cause of a session value being lost when one navigates to another page and attempts to write that session out:

Page 1

session("u_name") = oRS.fields("u_name")

Navigate to Page 2

Response.write Session("u_name")

...."_name" seems to be empty on Page 2.

What am I doing wrong here?

Thanks
Jason

Jul 19 '05 #2
Phew! Thanks.....I take it that session variables are problmeatic....what
would you suggest is the best way to build a simple, but rich logon system
using asp 3.0 that does not use cookies...it is possible to do this by IP?

Thanks
Jason
"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:u2**************@TK2MSFTNGP11.phx.gbl...
http://www.aspfaq.com/show.asp?id=2157

you also might try

oRS.fields("u_name").value

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
<ja***@catamaranco.com> wrote in message
news:um**************@TK2MSFTNGP09.phx.gbl...
What could the likely cause of a session value being lost when one

navigates
to another page and attempts to write that session out:

Page 1

session("u_name") = oRS.fields("u_name")

Navigate to Page 2

Response.write Session("u_name")

...."_name" seems to be empty on Page 2.

What am I doing wrong here?

Thanks
Jason


Jul 19 '05 #3
No, unless you want half of AOL's subscriber base to share the same session.
http://www.aspfaq.com/2069

If your users don't trust you enough to allow a session cookie, don't let
them log in. There are kludges, of course (see the cart example in the
above article), but IMHO, they're not worth it...

--
http://www.aspfaq.com/
(Reverse address to reply.)


<ja***@catamaranco.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Phew! Thanks.....I take it that session variables are problmeatic....what
would you suggest is the best way to build a simple, but rich logon system
using asp 3.0 that does not use cookies...it is possible to do this by IP?

Jul 19 '05 #4
What about another 'primitive' solution which assumes that one only needs
'thin' layer of protection prior to a user reaching the page:

Scenario:

A front-end navigation link is loaded with page url data and is sent to a
'pinch pont' login.asp page which checks the users email against the
database.

If found the users page url data is deposited in a page tracking table and
he is sent on his way to his desired page. If he not found, he is forced to
register and then re-login.

This approach means that the target page does not have ANY session or other
processing code...it is all done on the login.asp page which all navigation
links need to go through.

This way, I can send users directly to a web page from my emails without
having them to re-login....

What are your thoughts on this simple process.

Thanks
Jason
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:OA*************@tk2msftngp13.phx.gbl...
No, unless you want half of AOL's subscriber base to share the same session. http://www.aspfaq.com/2069

If your users don't trust you enough to allow a session cookie, don't let
them log in. There are kludges, of course (see the cart example in the
above article), but IMHO, they're not worth it...

--
http://www.aspfaq.com/
(Reverse address to reply.)


<ja***@catamaranco.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Phew! Thanks.....I take it that session variables are problmeatic....what would you suggest is the best way to build a simple, but rich logon system using asp 3.0 that does not use cookies...it is possible to do this by
IP?

Jul 19 '05 #5

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

Similar topics

2
by: Brad | last post by:
Hi everyone, I've been using ASP on a few different projects over the past year, either using Javascript or VBScript. During that time, I've made use of session variables, but even then, I've...
3
by: Martin | last post by:
Hi all As my posting title suggests I'm having problems using InProc Session state in my ASP .NET app. I wrote a site for a friend which uses ADO .NET to keep track of a simple...
6
by: Ilia | last post by:
Hi folks, I have some problems with ASP.NET Session State. The following simple program runs well if the Session State set as "InProc". If I switch to "SQLServer", the changes, made by the...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
20
by: p175 | last post by:
Hi people, I have a stored procedure that creates many Global temporary session tables. Into each of these tables go the results of various processing using relational division all keyed and...
2
by: DigitalFusion | last post by:
Hello All, I have an app on an intranet which uses the response.contenttype in ASP to create a word doc. The issue I am having is that when this doc is generated and opened, the session is...
1
by: =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ== | last post by:
I have an application in which I store state in the Session object. There are two paths of execution in the Page_Load method of the default page. In one path the Session state is preserved across...
22
by: K. A. | last post by:
I have two servers at work, 'A' for testing and development, and server 'B' for production. On server A, I wrote a PHP test code to login users then direct them to a personalized page. This is...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
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...
0
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 ...

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.