codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Redirect than Write?  TheShadow at 03:01 on Monday, May 23, 2005
 


[CODE]<%
username = Session("username")
if ("" = username) Then
Response.redirect "/forum/login.html"
response.Write("Sorry, you are not logged in.")
response.End
End if
%>[/CODE]

How do i write that Sorry, you are not logged in ... to the login.asp?

  Re: Redirect than Write?  Zefiras at 15:20 on Monday, May 23, 2005
 

No...
You better try:

<%
username = Session("username")
if ("" = username) Then
response.Write("Sorry, you are not logged in.")
response.Write("<META HTTP-EQUIV=Refresh CONTENT='/forum/5_URLlogin.html'>")
End if
%>

or using url parameters tosend to login.asp page.

Best regards!










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Remote program execution using cgi-perl
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007