Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 How to use Snitz authentication
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

longline
Starting Member

Italy
2 Posts

Posted - 29 January 2015 :  13:31:14  Show Profile  Reply with Quote
Hallo everybody!
I need to use Snitz authentication process for other pages on the same domain.
I want to make ASP pages that can get if a user is logged in, his username, his ID.
I've found a cookie that contains the username:

Request.Cookies(strUniqueID & "User")("name")

I can get member's ID with it, but if I logout the cookie still contain the previous value.

So, I don't know how to get the correct logged user data. Can you help me?

p.s. sorry for my English, I'm Italian.

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 29 January 2015 :  15:40:08  Show Profile  Visit HuwR's Homepage
check this thread http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=33125 it should help get what you want

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

longline
Starting Member

Italy
2 Posts

Posted - 29 January 2015 :  18:14:32  Show Profile
Thanks HuwR!
I've red the thread you linked me, but it deals with login in any page.
I need something slightly different: after a user logged in, how can I get his username and his ID? I need also his email address...
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 January 2015 :  04:01:05  Show Profile  Visit HuwR's Homepage
you can get their username and id from the cookie, the email address you will have to fetch from the database.

The link should explain what you need to do, as you need to include some forum files in your standard pages if you want to ascertain if the user is logged in or not

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07