Howdy All-
I'm using the following tutorial as a baseline for setting up some authentication mechanisms on my personal site: http://www.devarticles.com/index2.php?option=content&task=view&id=163&pop=1&page=0&hide_js=1
I'm using the method of form authentication where the author writes that you can send the header function to re-direct the user.
The problem I'm having is that in following the author's directions, you have to specify a static page, what I want to be able to do is, include the checking code on any page I wish, and if the user is not logged in, re-direct to the login page as it notes in the article and then send the user back to the original page he/she requested. I've tried setting the header to HTTP_REFER nbut for some reason the referer seems to think its the login page itself and not the page that re-directed to the login page 🙁 Am I doing something wrong here or is there a better way to do this?