I've read that you can save a session state variable created by an ASP page
into a db so that the value of the session state variable can be read/used
by an ASP.NET webform.
Question: Let's say the session variable is called "UserIsAdmi n" and the
ASP page is the login page. When the person logs in as 'admin' it stores
the session variable as "True" in a db. How does the ASP.NET page that is
served up know whether the page requestor is the same user or a different
user? If "UserIsAdmi n" is set to True in the db, won't anyone be able to
get in as 'admin' because this db value has been set? Am I missing
something? 2 1413
I think you are missing the fact you can't do it :-)
Now a db can share data between the two, but you aren't going to set/get it through the session object, you'll have to create your own object for that. Also, like you're stuck on, you'll need to set some indentifying information in the querystring/cookies to know who is who between platforms.
"VB Programmer" <I-*********@Nowhe re.com> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. I've read that you can save a session state variable created by an ASP page into a db so that the value of the session state variable can be read/used by an ASP.NET webform. Question: Let's say the session variable is called "UserIsAdmi n" and the ASP page is the login page. When the person logs in as 'admin' it stores the session variable as "True" in a db. How does the ASP.NET page that is served up know whether the page requestor is the same user or a different user? If "UserIsAdmi n" is set to True in the db, won't anyone be able to get in as 'admin' because this db value has been set? Am I missing something?
Thanks Raterus. I'll search online for some examples.
"Raterus" <ra*****@spam.o rg> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I think you are missing the fact you can't do it :-)
Now a db can share data between the two, but you aren't going to set/get it
through the session object, you'll have to create your own object for that.
Also, like you're stuck on, you'll need to set some indentifying information
in the querystring/cookies to know who is who between platforms.
"VB Programmer" <I-*********@Nowhe re.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. I've read that you can save a session state variable created by an ASP
page into a db so that the value of the session state variable can be read/used by an ASP.NET webform.
Question: Let's say the session variable is called "UserIsAdmi n" and the ASP page is the login page. When the person logs in as 'admin' it stores the session variable as "True" in a db. How does the ASP.NET page that is served up know whether the page requestor is the same user or a different user? If "UserIsAdmi n" is set to True in the db, won't anyone be able to get in as 'admin' because this db value has been set? Am I missing something?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Greg Linwood |
last post by:
I'm having difficulty understanding Session state in ASP.Net. It's almost
embarrassing asking this as I've been using ASP since it was first released
& it really shouldn't be this hard to use - perhaps I'm just not very smart
or perhaps MS is making this too hard for us sql bunnies to understand - I
dunno, but I'd really appreciate someone explaining what I'm doing wrong
here & perhaps suggest a better approach..
I'm familiar with use of...
|
by: Hardik Shah |
last post by:
Hi,
I am calling an ASP.Net page from an ASP classic application but need
the .Net page to have access to ASP classic's session variables. I am
using HTTPWebRequest to call ASP classic page which could then return
the session values. But the values are always blank. If I do a
Response.Redirect() to call the ASP page, it returns the values okay.
But I cannot do a Response.Redirect() as I just need to access some
session variables and...
|
by: Michelle Stone |
last post by:
Hi everybody
I am writing a simple asp.net application using form
authentication. I store the list of all users and their
passwords in an SQL Server database table.
My client recently told me that he wants me to do
something through which only one user can login using any
given account name. I mean to say, for example, when a
user called "abc" is online, another person shouldn't be
|
by: Spencer H. Prue |
last post by:
Hello!,
I have a using system.web.sessionstate directive one the top of each of two
web pages. On the first page I have the dataadapter, dataconnection, and
dataset (also in the component tray). I have used Session.Add().
Session.Add("dadapter", sqlDataAdapter1);
Session.Add("dset", ds);
On the other page I have used a cast to get at the Session objects that I
|
by: Åženol Akbulak |
last post by:
Hello;
I use in my web application FormsAuthentication. Also I use Session state
(InProc).
When a user logged in, I can read Session parameters. (For example
Session). Problem is that, when user close the browser window then
open a new browser, FormsAuthentication reads from cookie and user logs in.
Althought user logged in, session parameter is null.
| |
by: Joe |
last post by:
I have an application which runs in a non-secure environment. I also have an
application that runs in a secure environment (both on the same machine). Is
there any way to share the session data for this?
Most of the site allows the user to add things to a cart (non-secure), once
they choose to check-out, I need this information which was stored in the
session to be read by the payment page(secured).
Hope this makes sense. It's probably...
|
by: Rommellion |
last post by:
We have 5 to 6 projects .net running on production, in which each one
has its own virtual direstory, however we need to add up two more and
link them all together so they can share same single session state. we
are doing this for some Authentication and Role identification
purposes.
We dont want to use any Db like storing session in SQL Server or
whatever, also we dont need to use niether encryption nor passing
parameters, because we will...
|
by: Andrew Teece |
last post by:
Hope someone can help.
We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm.
The application uses the ReportViewer control in local mode, hence we
need session state.
Because we dont wan't a single point of failure we use SQL Session
State.
I have setup a persistant sql session state database on a SQL 2000
server (this is a cluster in production, so no SPOF)
I have setup our web.config files to include;
" <sessionState...
|
by: =?Utf-8?B?U2FjaGluIFNha2k=?= |
last post by:
I have asp application, from which I am redirecting user to .aspx page. I
want to use same sessions in .aspx application. When User clicks on Browsers
back button i.e. comes back from .aspx page to .asp page the same session
state i want to persist ? How to do this ??
Thanks in Advance
Sachin Saki
|
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,...
|
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...
| |
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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();...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |