Print Page | Close Window

False Logins???

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=4629
Printed Date: 02 April 2026 at 1:27pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: False Logins???
Posted By: redsavior
Subject: False Logins???
Date Posted: 30 July 2003 at 9:02pm

Could one of you check this version of the forum: http://www.tastyfresh.com/forum/ - http://www.tastyfresh.com/forum/  and let me know what would cause a false login?

What I mean by that is when you go to the login screen and enter your name and password and hit submit, it loads the forum main page again like you are logged in, but you really are not. This also happens in the admin login as well, but there you get an access denied message.

Dave R




Replies:
Posted By: redsavior
Date Posted: 30 July 2003 at 9:38pm

ok...the site works IF you go in through: http://users2.ihost.biz/istdar/newtasty/forum/default.asp - http://users2.ihost.biz/istdar/newtasty/forum/default.asp

But I need to be able to use http://www.tastyfresh.com - www.tastyfresh.com or tastyfresh.com, the domain names.

Has anybody else had this problem before???



Posted By: WebWiz-Bruce
Date Posted: 31 July 2003 at 6:17am

For security reasons browsers can only read in cookies from the site that sets them, if you use URL masking browsers think that the cookie is set by another site and so can not read it back in.

The only thing you can do is connect directly through the long URL or change hosting to one that will let you use your domain name directly with your web space.



-------------
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: redsavior
Date Posted: 31 July 2003 at 7:53am
Ok, I'm checking with my ISP about this now. Thanks.


Posted By: redsavior
Date Posted: 15 August 2003 at 2:50pm

Here's an official solution. In working with my ISP, we did determine that there is infact a bug in the Web Wiz Forum code. The error is in the way the cookies are set. The following is the original code contained in login_user.asp starting with line 132.

   'Write a cookie with the User ID number so the user logged in throughout the forum
   'Write the cookie with the name Forum containing the value UserID number
   Response.Cookies("Forum")("UID") = strUserCode
   If CBool(Request.Form("ActiveUsers")) = False Then
    Response.Cookies("Forum")("Hide") = True
   Else
    Response.Cookies("Forum")("Hide") = False
   End If

This is the modified code:

   'Write a cookie with the User ID number so the user logged in throughout the forum
   'Write the cookie with the name Forum containing the value UserID number
   Response.Cookies("Forum")("UID") = strUserCode
   Response.Cookies.Item( "Forum" ).Path = "/"
   Response.Cookies.Item( "Forum" ).Domain = Request.ServerVariables( "HTTP_HOST" )
   If CBool(Request.Form("ActiveUsers")) = False Then
    Response.Cookies("Forum")("Hide") = True
   Else
    Response.Cookies("Forum")("Hide") = False
   End If

The log_off_user.asp code must also be altered starting at line 55 from:

'Clear the forum cookie on the users system so the user is no longer logged in
Response.Cookies("Forum")("UID") = strLoggedInUsername & "LOGGED-OFF"
Response.Cookies("PrForum") = ""
Session("ViRead") = ""
Response.Cookies("LPM") = ""

to this:

'Clear the forum cookie on the users system so the user is no longer logged in
Response.Cookies("Forum")("UID") = strLoggedInUsername & "LOGGED-OFF"
   Response.Cookies.Item( "Forum" ).Path = "/"
   Response.Cookies.Item( "Forum" ).Domain = Request.ServerVariables( "HTTP_HOST" )
Response.Cookies("PrForum") = ""
Session("ViRead") = ""
Response.Cookies("LPM") = ""

There may be a few other places, but once these mods have been made the forums will work properly from the correct URL.

Hopefully this code will be updated officially in a future release of the forums.



Posted By: ljamal
Date Posted: 16 August 2003 at 6:42am
The problem isn't the way WWF accepts cookies, it's your Web Hosts method of setting up accounts.

The are using some domain forwarding system as your IP address for tastyfresh.com is the same as the one for users2.ibizhost.com and I suspect that there are more domain names that share the same IP address as well.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: redsavior
Date Posted: 16 August 2003 at 10:25am
There are, but the above mod corrects that issue and probably should be included in the next official update. That is all that I am saying.


Posted By: ljamal
Date Posted: 16 August 2003 at 11:45am
No, what you said was:
Quote there is infact a bug in the Web Wiz Forum code


It is not a bug. It your account was set-up correctly and set cookies correctly, then the forum would work correctly. I don't think the code corrections are particularly useful. What would be useful is the ability to define the domain and path in the administrative tools, so that there would be no need to MOD the code instances like this.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: redsavior
Date Posted: 17 August 2003 at 9:25am
If it fixes a problem, and other people are having the same problem (I've seen posts by others here regarding this issue) then it is a bug that needs to be fixed.


Posted By: Sambs
Date Posted: 17 August 2003 at 10:55am

Hi guys,

I 'am having the same problem too. This only happen today, when I try to log in the page just reload without any link for logout, it's just a plain page like you never login in.

 



Posted By: ljamal
Date Posted: 17 August 2003 at 12:25pm
Originally posted by redsavior redsavior wrote:

If it fixes a problem, and other people are having the same problem (I've seen posts by others here regarding this issue) then it is a bug that needs to be fixed.


Most posts that I seen referring to cookie problems with login is because of some variation of domain forwarding which causes the newer web browsers to by default block the cookie. That is not a bug in the software that's a problem with YOUR setup and a hurdle for you to over come. In your instance, it's because YOUR web host set up your web site in an abmormal manner so that your cookies are not issued in the standard method. That is a hurdle for you to overcome and not a problem with the software. The fix that works for you will introduce problems in other cases, so what works for you will not work for everyone.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: Remi_Woler
Date Posted: 17 August 2003 at 1:26pm

Isn't that tasty site just an invisible redirect like dot.tk domains? In that case it is a 'problem' with Internet Explorer's 6 Privica Policy. There is a work-a-round so cookies from the third-domain are accepted, but i don't think every single user wants to do it... If it is a invisible redirect, you should look for a real domain or be satisfied with the long domain name where it does work.



-------------
There are 10 kinds of people. Those who understand binaries, and those who don't.



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