Hi
I want to be able to create custom http headers from within an asp page. Then be able to grab the values held within from any required (or subsequent) page.
I am trying to force a login dialog to appear using the
Response.Status = "401 Access Denied"
Response.AddHeader " = ""localhost"""
Response.Write "Some page with info about user names And registration"
Response.End()
The user would enter their username and password and click OK. On the server, the values would be decoded from base64 and validated with a databse.
If successful, the username and password would then be re-encypted and added to a custom http header.
...decoded and validated the values....
...now add the custom http headers...
Response.AddHeader "HTTP_UID",strUID
Response.AddHeader "HTTP_PWD", strPWD
etc..
....a n other page would then attempt to read the custom HTTP headers....
<%
Dim strUsername, strPassword
strUsername = Request.ServerVariables("HTTP_UID"
strPassword = Request.ServerVariables("HTTP_PWD"
%>
Is this kind of thing possible 'on the fly'or am I wasting my time?
Is is only possible by adding the custom headers in the IIS manager?
Thanks for any help or pointers.
I want to be able to create custom http headers from within an asp page. Then be able to grab the values held within from any required (or subsequent) page.
I am trying to force a login dialog to appear using the
Response.Status = "401 Access Denied"
Response.AddHeader " = ""localhost"""
Response.Write "Some page with info about user names And registration"
Response.End()
The user would enter their username and password and click OK. On the server, the values would be decoded from base64 and validated with a databse.
If successful, the username and password would then be re-encypted and added to a custom http header.
...decoded and validated the values....
...now add the custom http headers...
Response.AddHeader "HTTP_UID",strUID
Response.AddHeader "HTTP_PWD", strPWD
etc..
....a n other page would then attempt to read the custom HTTP headers....
<%
Dim strUsername, strPassword
strUsername = Request.ServerVariables("HTTP_UID"
strPassword = Request.ServerVariables("HTTP_PWD"
%>
Is this kind of thing possible 'on the fly'or am I wasting my time?
Is is only possible by adding the custom headers in the IIS manager?
Thanks for any help or pointers.