473,383 Members | 2,005 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,383 software developers and data experts.

Sessions Problem


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

Session("UserLevel") = (MM_rsUser.Fields.Item("Accesslevel").Value)

which doesn't seem to be visible through out the site. If I use <%
Response.Write(Session("UserLevel")) %> on the login page then it shows that
the session in is present and the correct value. but when I use <%
Response.Write(Session("UserLevel")) %>. 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 1369
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*******@blueyonder.co.uk> wrote in message
news:P8****************@fe3.news.blueyonder.co.uk. ..

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

Session("UserLevel") = (MM_rsUser.Fields.Item("Accesslevel").Value)

which doesn't seem to be visible through out the site. If I use <%
Response.Write(Session("UserLevel")) %> on the login page then it shows that the session in is present and the correct value. but when I use <%
Response.Write(Session("UserLevel")) %>. 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*******@blueyonder.co.uk> wrote in message
news:P8****************@fe3.news.blueyonder.co.uk. ..

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

Session("UserLevel") = (MM_rsUser.Fields.Item("Accesslevel").Value)

which doesn't seem to be visible through out the site. If I use <%
Response.Write(Session("UserLevel")) %> on the login page then it shows
that the session in is present and the correct value. but when I use <%
Response.Write(Session("UserLevel")) %>. 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*****@dnartreb.noraa> wrote in message
news:OA**************@TK2MSFTNGP14.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*******@blueyonder.co.uk> wrote in message
news:QO*******************@fe2.news.blueyonder.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*******@blueyonder.co.uk> wrote in message
news:P8****************@fe3.news.blueyonder.co.uk. ..

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

Session("UserLevel") = (MM_rsUser.Fields.Item("Accesslevel").Value)

which doesn't seem to be visible through out the site. If I use <%
Response.Write(Session("UserLevel")) %> on the login page then it shows
that the session in is present and the correct value. but when I use <%
Response.Write(Session("UserLevel")) %>. 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
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...
9
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';...
0
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...
1
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...
6
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...

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.