[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Triggering event when member returns

Posted on 2012-09-20
4
Medium Priority
?
344 Views
Last Modified: 2012-09-22
I know I can detect when a person logs in via username/password but how can I detect when a person returns to the site (any page on the site) when they've checked the "remember me" box?  I need to fire an event or something so that I can do some stuff one time when a person comes to the site and is logged in.

Any ideas?
0
Comment
Question by:jglazer63
  • 2
  • 2
4 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38418787
You need to check the URLReferrer on the Request object to see if its empty and check the Cookies collection.
0
 

Author Comment

by:jglazer63
ID: 38418799
Can you expand on this a little?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 38418898
If you check Request.URLReferer, it would contain URL of previous page. If its empty, it means user directly came to your site. If user was able to access the page directly without going to login page then it could indicate that cookie is used for authentication.
0
 

Author Closing Comment

by:jglazer63
ID: 38425341
good
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question