Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating My Own Web Security...
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01184107
Message ID:
01184340
Views:
18
This message has been marked as the solution to the initial question of the thread.
>Hi All!
>
>I finally started getting my hands dirty in developing web applications for our company. Currently I am creating two sites:
>
>1. Operations - site to be used by the operations staff as well as our customers.
>
>2. Web Security - to manage all users and roles for all web applications we will be developing.
>
>When a user enters the operations site, the site will redirect that user to the web security site in order for that person to login. After validating the user's credentials, the user will then be redirected to the calling site.
>
>My problem is how do I pass the user's credentials (user id, name, etc. except password) to the calling site? I don't want to pass the information as:
>
> http://Operations/Main.aspx?UserID=123;Name=Mickey Mouse;...
>
>Is there another way to accomplish this task?
>
>
>Thanx! a lot in advance...
>
>Martin

I would do it by a session item value... provided the sites are relative to each other... ex:

MySite.com\Security
MySite.com\Operations

Session.Add( "UserID", Valid_Login_Info )

So the session cookie could be visible to the mysite.com and carry forward to the other pages that are all subdirectories of mysite.com... Then

Response.Redirect( "Operations\WhateverPage.aspx" )


Then, in the WhateverPage.aspx, you would have access via

if Session.Item("UserID") is Nothing
response.redirect( "BackToLogin.aspx" )
else
x = Session.Item("UserID")
end if
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform