Print Page | Close Window

Quick Login Problem-Can’t get it to work

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=4160
Printed Date: 02 April 2026 at 10:48pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Quick Login Problem-Can’t get it to work
Posted By: shduffy
Subject: Quick Login Problem-Can’t get it to work
Date Posted: 09 July 2003 at 12:16pm

I have downloaded the forum and am trying to put a Quick Login on the default.asp page. I have on the page although when I login from the default.asp page it gives the following message

Sorry, only members with sufficient permission can access this page.

A security error has occurred with authentication.
Please ensure that all cookies are enabled on your web browser, and you are not using a saved or cached copy of the page.

 

 

A am new to ASP and dont know what the problem is. Do I have to include any other ASP code in the default.asp page so that the Quick Login will work?

 

Many thanks

 

Shane Duffy



-------------
Shane Duffy



Replies:
Posted By: dead_angel
Date Posted: 09 July 2003 at 1:49pm
i've had the same problem for a long while.. i gave up trying to fix it ages ago.. most of my users don't even try to use it anyway..


Posted By: shduffy
Date Posted: 10 July 2003 at 3:54am

hi Dead Angel, I see you have the quick login on your site. Is it working for you now. I tried to join your site but it gave me the same problem I was having myself(see below). Have you disabled the register section on your site?

Sorry, only members with sufficient permission can access this page.

 

 

 



-------------
Shane Duffy


Posted By: dead_angel
Date Posted: 10 July 2003 at 6:51am

nope. my quick login still doesn't work...'ive given up for now.. i'm currently working on a new site, so i have left that for now..

 

i haven't disabled registration either, as someone signed up less than 30 minutes ago.. maybe you just needed to delete your cookies or refresh or something..



Posted By: JohnnieLarkin
Date Posted: 11 July 2003 at 6:49pm

No Nor me. I know the one on this site is working i try it earlier.

I spent ages trying to get my to work, but still no luck.

Maybe someone can help me.



Posted By: shduffy
Date Posted: 12 July 2003 at 5:47am

hey still no luck on this side in trying to get the quick login to work either. Probably simplier just leaving it out.

 

 



-------------
Shane Duffy


Posted By: WebWiz-Bruce
Date Posted: 12 July 2003 at 7:34am

This is the asp code used in the forum on this site for teh quick login, you'll have to find where to place it in yourself though.

'If the user has logged in then show them a quick login form
If lngLoggedInUserID = 0 OR lngLoggedInUserID = 2 Then
 
 Response.Write(vbCrLf & " <td align=""right"" class=""smText""><form method=""post"" name=""frmLogin"" action=""login_user.asp"">" & strTxtQuickLogin & " " & _
 vbCrLf & "     <input type=""text"" size=""10"" name=""name"" class=""smText"" />" & _
 vbCrLf & "       <input type=""password"" size=""10"" name=""password"" class=""smText"" />" & _
 "<input type=""hidden"" name=""AutoLogin"" value=""False"" />" & _
 "<input type=""hidden"" name=""ActiveUsers"" value=""True"" />" & _
 "<input type=""hidden"" name=""sessionID"" value=""" & Session.SessionID & """ />" & _
 vbCrLf & "     <input type=""submit"" value=""Go"" class=""smText"">" & _
 vbCrLf & " </form></td>") 
 
End If

 



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Y.C.Rake
Date Posted: 31 August 2003 at 10:58pm
Originally posted by -boRg- -boRg- wrote:

This is the asp code used in the forum on this site for teh quick login, you'll have to find where to place it in yourself though.

'If the user has logged in then show them a quick login form
If lngLoggedInUserID = 0 OR lngLoggedInUserID = 2 Then
 
 Response.Write(vbCrLf & " <td align=""right"" class=""smText""><form method=""post"" name=""frmLogin"" action=""login_user.asp"">" & strTxtQuickLogin & " " & _
 vbCrLf & "     <input type=""text"" size=""10"" name=""name"" class=""smText"" />" & _
 vbCrLf & "       <input type=""password"" size=""10"" name=""password"" class=""smText"" />" & _
 "<input type=""hidden"" name=""AutoLogin"" value=""False"" />" & _
 "<input type=""hidden"" name=""ActiveUsers"" value=""True"" />" & _
 "<input type=""hidden"" name=""sessionID"" value=""" & Session.SessionID & """ />" & _
 vbCrLf & "     <input type=""submit"" value=""Go"" class=""smText"">" & _
 vbCrLf & " </form></td>") 
 
End If

Error~  Can't get it to work !

Look:
error



-------------
http://www.51now.com/weblog - Y.C.Rake's WebLog


In the face of life, we are all persons who beg, the way that is just begged is different.


Posted By: WebWiz-Bruce
Date Posted: 01 September 2003 at 3:04am

The code needs to be within ASP blocks to be processed by the ASP.DLL eg:-

<%
code in here
%>



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Magic
Date Posted: 01 September 2003 at 5:25am

<NIT PICKING>

'If the user has logged in then show them a quick login form
If lngLoggedInUserID = 0 OR lngLoggedInUserID = 2 Then

Shouldn't that be If the user hasn't logged in.....

</NIT PICKING>



-------------
- Don't ask me how it works, just be greatful it works!

- Now what does this BIG RED button do?


Posted By: WebWiz-Bruce
Date Posted: 01 September 2003 at 5:29am

These two ID number 0 and 2 (2 being the guest account) are issued to non logged in users.

Really it should be:-

'If the user has not logged in then show them a quick login form
If lngLoggedInUserID = 2 Then

as all non logged in users should have the guest account ID number of 2 but I guess I got a bit carried away.

The whole lot hs been updated since my first post on it to be:-

<%
'If the user has not logged in (guest user ID = 2) then show them a quick login form
If lngLoggedInUserID = 2 Then
 
 Response.Write(vbCrLf & " <td align=""right"" class=""smText""><form method=""post"" name=""frmLogin"" action=""login_user.asp"">" & strTxtQuickLogin & " " & _
 vbCrLf & "     <input type=""text"" size=""10"" name=""name"" class=""smText"" />" & _
 vbCrLf & "       <input type=""password"" size=""10"" name=""password"" class=""smText"" />" & _
 "<input type=""hidden"" name=""AutoLogin"" value=""False"" />" & _
 "<input type=""hidden"" name=""ActiveUsers"" value=""True"" />" & _
 "<input type=""hidden"" name=""sessionID"" value=""" & Session.SessionID & """ />" & _
 vbCrLf & "     <input type=""submit"" value=""" & strTxtGo & """ class=""smText"">" & _
 vbCrLf & " </form></td>") 
 
End If
%>

Also the following needs adding to the language_file_inc.asp file:-

Const strTxtGo = "Go"



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Y.C.Rake
Date Posted: 01 September 2003 at 5:54am
GOOD~!! Thank you very very much ~!!

-------------
http://www.51now.com/weblog - Y.C.Rake's WebLog


In the face of life, we are all persons who beg, the way that is just begged is different.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net