473,765 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sessions Problem


Hi all, I seem to been having a problem with sessions. I have a session in
the login page

Session("UserLe vel") = (MM_rsUser.Fiel ds.Item("Access level").Value)

which doesn't seem to be visible through out the site. If I use <%
Response.Write( Session("UserLe vel")) %> on the login page then it shows that
the session in is present and the correct value. but when I use <%
Response.Write( Session("UserLe vel")) %>. on any other page through out the
site it returns nothing
I'm actually wont to use sessions to protect admin pages.

As I am new to sessions, is there anything I am missing?
or can any one point me in the right direction ?

Thanks in advance for your help.

Desperate Paul.
Jul 22 '05 #1
6 1389
http://www.aspfaq.com/2157

--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.


"Paul" <de*******@blue yonder.co.uk> wrote in message
news:P8******** ********@fe3.ne ws.blueyonder.c o.uk...

Hi all, I seem to been having a problem with sessions. I have a session in
the login page

Session("UserLe vel") = (MM_rsUser.Fiel ds.Item("Access level").Value)

which doesn't seem to be visible through out the site. If I use <%
Response.Write( Session("UserLe vel")) %> on the login page then it shows that the session in is present and the correct value. but when I use <%
Response.Write( Session("UserLe vel")) %>. on any other page through out the site it returns nothing
I'm actually wont to use sessions to protect admin pages.

As I am new to sessions, is there anything I am missing?
or can any one point me in the right direction ?

Thanks in advance for your help.

Desperate Paul.

Jul 22 '05 #2
Although no one answered this problem I have managed to solve it myself. The
problem wasn't anything to do with code, but more to do with Zone Alarm
stopping the cookies. No cookie meant that the restricted pages where always
being redirected whether the correct person was logged in or not.

"Paul" <de*******@blue yonder.co.uk> wrote in message
news:P8******** ********@fe3.ne ws.blueyonder.c o.uk...

Hi all, I seem to been having a problem with sessions. I have a session in
the login page

Session("UserLe vel") = (MM_rsUser.Fiel ds.Item("Access level").Value)

which doesn't seem to be visible through out the site. If I use <%
Response.Write( Session("UserLe vel")) %> on the login page then it shows
that the session in is present and the correct value. but when I use <%
Response.Write( Session("UserLe vel")) %>. on any other page through out
the site it returns nothing
I'm actually wont to use sessions to protect admin pages.

As I am new to sessions, is there anything I am missing?
or can any one point me in the right direction ?

Thanks in advance for your help.

Desperate Paul.

Jul 22 '05 #3
> Although no one answered this problem

I guess point #1 on the link I posted when I "answered this problem" wasn't
enough help. :-(
Jul 22 '05 #4
Sorry Paul didn't mean to dismiss you. Point 1 from your link was relevant,
and I did check my browser and the settings where fine. I just didn't use my
common sense and check all my security software, such as firewall,
Spyware/Trojan remover etc.

Thanks

For you help and the fact that had I applied your answer holistically it
would have solved my problem.

Paul.
"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:OA******** ******@TK2MSFTN GP14.phx.gbl...
Although no one answered this problem


I guess point #1 on the link I posted when I "answered this problem"
wasn't enough help. :-(

Jul 22 '05 #5
I'm having all sorts of problems with Sessions, I've been using them for
years with out a hitch, all of a sudden the last 6 - 12 months since getting
our new Win2003 server it's all gone shakey!!!

Our development server started life as an NT4 machine and has been simply
upgraded from one operating system to the next, it is now a cross, NT4
Server, Win2000 Server, Win2003 server. All development sites work fine and
under heavy stress. The machine only has 256 Mb RAM with PII processor,
great for stress testing scripts. Our new server is a fresh install P4
Win2003 server with IIS6, I'm getting all sorts of session problems, And
across multiple sites.

Anyone have any ideas, I've switched the server into IIS5 compatibility mode
so it's not that.

Bearing in mind our mismatched server works fine locally.

I think Session recycling is taking place but can't find any evidence of it

Regards Adam
"Paul" <de*******@blue yonder.co.uk> wrote in message
news:QO******** ***********@fe2 .news.blueyonde r.co.uk...
Although no one answered this problem I have managed to solve it myself.
The problem wasn't anything to do with code, but more to do with Zone
Alarm stopping the cookies. No cookie meant that the restricted pages
where always being redirected whether the correct person was logged in or
not.

"Paul" <de*******@blue yonder.co.uk> wrote in message
news:P8******** ********@fe3.ne ws.blueyonder.c o.uk...

Hi all, I seem to been having a problem with sessions. I have a session
in the login page

Session("UserLe vel") = (MM_rsUser.Fiel ds.Item("Access level").Value)

which doesn't seem to be visible through out the site. If I use <%
Response.Write( Session("UserLe vel")) %> on the login page then it shows
that the session in is present and the correct value. but when I use <%
Response.Write( Session("UserLe vel")) %>. on any other page through out
the site it returns nothing
I'm actually wont to use sessions to protect admin pages.

As I am new to sessions, is there anything I am missing?
or can any one point me in the right direction ?

Thanks in advance for your help.

Desperate Paul.


Jul 22 '05 #6
> I'm having all sorts of problems with Sessions, I've been using them for
years with out a hitch, all of a sudden the last 6 - 12 months since
getting our new Win2003 server it's all gone shakey!!!


http://www.aspfaq.com/2157

--
This is my signature. It is a general reminder.
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.
Jul 22 '05 #7

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

Similar topics

3
1886
by: Pitaridis Aristotelis | last post by:
I have a protected administrator page. I made it using sessions. I test it using my PC and it works perfect.When I upload it to the server, it does not work because it does not remember the seasons. I do not know how to fix it. Does anybody know what's wrong with the server????? Do I have to change something so that the server will be able to recognize the sessions that I use in my script????
9
2646
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php'; global $LOGINDIR;
0
971
by: al-baghdadi | last post by:
Hi, We have a 2-processor server. Initially, our application was failing when it accesses session variables (we were using InProc). We found out the reason was we had webgarden enabled in machine.config. We switched to StateServer, but now the porblem is sessions only expire if we access the application locally (on the server), but they don't when using the application remotely.
1
1465
by: pmclinn | last post by:
I have created a aspx page that requires me to pull data from multiple tables in an Oracle DB. The data is pulled down and then stored in local variables, and then closed and disposed. I have implimented an error handling to prevent sessions from remaining open and yet I'm still noticing that sessions to the oracle db are remaining open. I cannot figure out what is going on. I have gone proceedure to proceedure looking for poorly...
6
2018
by: K. | last post by:
Hello!!!! I have a problems with sessions in mojavi technology. I have created a login panel to log into the system: Unfortunately sessions variable disappears while trying to click on any other <a hreflink on my page and user has to log into the system many times. How to build a page to have session variables values available on every page on my system
0
9568
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
9398
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
10156
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
8831
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...
0
6649
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
5275
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...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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
2805
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.