Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - False Logins???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

False Logins???

 Post Reply Post Reply Page  12>
Author
redsavior View Drop Down
Newbie
Newbie


Joined: 24 April 2003
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote redsavior Quote  Post ReplyReply Direct Link To This Post Topic: False Logins???
    Posted: 30 July 2003 at 9:02pm

Could one of you check this version of the 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

Back to Top
redsavior View Drop Down
Newbie
Newbie


Joined: 24 April 2003
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote redsavior Quote  Post ReplyReply Direct Link To This Post 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

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

Has anybody else had this problem before???

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
redsavior View Drop Down
Newbie
Newbie


Joined: 24 April 2003
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote redsavior Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2003 at 7:53am
Ok, I'm checking with my ISP about this now. Thanks.
Back to Top
redsavior View Drop Down
Newbie
Newbie


Joined: 24 April 2003
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote redsavior Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
redsavior View Drop Down
Newbie
Newbie


Joined: 24 April 2003
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote redsavior Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.