Forums: How to implement "single login" feature in ASPRunnerPro appl - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to implement "single login" feature in ASPRunnerPro appl

#1 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 8453
  • Joined: 03-February 03

Posted 04 June 2007 - 03:52 PM

To implement single login use Loginonload event and the following code:

Quote

if Request.ServerVariables("LOGON_USER")<>"" then
SESSION("UserID") = Request.ServerVariables("LOGON_USER")
SESSION("AccessLevel") = ACCESS_LEVEL_USER
Response.Redirect "..._list.asp"
end if


Replace text in bold with the URL of your application first page.
Best regards,
Sergey Kornilov
0

#2 User is offline   Sheerasheera 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 30-January 09

Posted 30 January 2009 - 08:50 AM

View Postadmin, on Jun 4 2007, 04:52 PM, said:

To implement single login use Loginonload event and the following code:

Quote

if Request.ServerVariables("LOGON_USER")<>"" then
SESSION("UserID") = Request.ServerVariables("LOGON_USER")
SESSION("AccessLevel") = ACCESS_LEVEL_USER
Response.Redirect "..._list.asp"
end if


Replace text in bold with the URL of your application first page.



How do we give access rights to different level users using the single sign on method?
0

#3 User is offline   hich 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 124
  • Joined: 14-December 08

Posted 15 June 2009 - 05:50 PM

Would this still work the same for the latest ASPR 6.1 please?
Thanks
0

#4 User is offline   manan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 14
  • Joined: 12-October 05

Posted 09 September 2009 - 08:56 AM

I tried this method and it worked very well and is easy to implement.

But as Sheera mentioned,

1. How do we give access rights to different level users using the single sign on method?
I discovered the Admin rights were removed for selected users.

2. Also, how do we load sessions such as:
Session("name") = rs("name")
Session("address") = rs("address")

Please help.

Thank you.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users