X-PTCBox Forum
https://ptcbox.me/forum/YaBB.pl
Help - Support >> Tech Help Section >> Login issue..
https://ptcbox.me/forum/YaBB.pl?num=1360022751

Message started by Still_Sleeping on 5th Feb, 2013 at 2:05am

Title: Login issue..
Post by Still_Sleeping on 5th Feb, 2013 at 2:05am
I started a thread here so i wouldn't continue off topic..

When I enter my username and password and click submit, it just refreshes the page like I never attempted to login. I'll try to start using the "when i close the browser window" setting to see if that makes a difference.   

Title: Re: Login issue..
Post by SolidSnake on 7th Feb, 2013 at 2:49am
Very weird, can't seem to find a reason for this.. have you deleted the automatically saved password just in case it's mistaken?
Does this happen only on your mobile device? Have you tried another browser to see if it makes any difference?

Title: Re: Login issue..
Post by venkat on 8th Feb, 2013 at 10:26am
It's not an issue, but I should mention here.

When I come to this forum's home page, it says "Welcome, Guest. Please Login or Register", whereas I can see that I am logged in when I visit other threads of this forum.

Even if I try to log in from the home page, it says "You are already logged in".

So, there should be something in the home page's script that doesn't track us.

Title: Re: Login issue..
Post by ruicarlov on 8th Feb, 2013 at 12:33pm
That happens to me, too. But in my case I never noticed I could actually post even without clicking in the login. I just assumed it was the login welcome message that was bugged.

[EDIT] - I checked it this time, and I just have to refresh the page once after i reach the forum to show up as logged in

Title: Re: Login issue..
Post by SolidSnake on 8th Feb, 2013 at 9:44pm
Well, now that you explained it I finally got it.

Let me explain what's happening :
The forum is web software. It uses pearl language which is script based.
Now the forum's software executable is the file YaBB.pl and it's located at this url :

http://www.ptcbox.me/forum/YaBB.pl

However in order to make the link much easier I use the simple sub-domain x.ptcbox.me.
Which is set to open the directory :

http://www.ptcbox.me/forum

and since "forum" is just a directory our html client (=>aka browser) automatically searches
for an understandable file with one of the default names (usually index.html or default.html).
It will never look for the YaBB.pl file since it doesn't know what it is.

So I have an index.html file there that simply tells our client that it will run pearl based script,
and it simply redirects to the YaBB.pl file that executes the forum software.

Now the issue with this is that this process carries no parameters and loads no cookies when
it travels from x.ptcbox.me to  http://www.ptcbox.me/forum/YaBB.pl.

And that's why you don't find yourself logged in through this route.
Now if you reload the page it all gets fixed as the client simply loads the page normally
without any redirects loading your cookies that log you in automatically.

So the fix for this is to bookmark the complete url of the forum instead of the simple one.
This way you will always be logged in and you will only have to update your session when you
enter from a different IP address.

I hope I helped! :P


Title: Re: Login issue..
Post by Still_Sleeping on 8th Feb, 2013 at 10:58pm

venkat wrote on 8th Feb, 2013 at 10:26am:
It's not an issue, but I should mention here.

When I come to this forum's home page, it says "Welcome, Guest. Please Login or Register", whereas I can see that I am logged in when I visit other threads of this forum.

Even if I try to log in from the home page, it says "You are already logged in".

So, there should be something in the home page's script that doesn't track us.


Its the same for me when I'm at home, I just click on a thread then it logs me in. But when not at home, no matter what i do, i can't login..

I haven't tried to login the last few days while I been away from the house. I'll update when I try again.

Also I'm using my iphone 3gs (browser-safari), usually the same as when I'm at the house, but I'm using wifi at home and my mobile service when I'm not at house.

Title: Re: Login issue..
Post by venkat on 13th Feb, 2013 at 9:08am
@SS,

If the sub-domain simply opens the Directory, then you can create an index file (probably index.asp) and just put the following one line code in the body of that index file, I think this issue will be fixed from your end, instead of relying on the visitors.


Code (html):
Response.Redirect("http://www.ptcbox.me/forum/YaBB.pl")

Title: Re: Login issue..
Post by SolidSnake on 13th Feb, 2013 at 12:51pm

venkat wrote on 13th Feb, 2013 at 9:08am:
@SS,

If the sub-domain simply opens the Directory, then you can create an index file (probably index.asp) and just put the following one line code in the body of that index file, I think this issue will be fixed from your end, instead of relying on the visitors.


Code (html):
Response.Redirect("http://www.ptcbox.me/forum/YaBB.pl")


Well that is the code for vbscript and I can't figure out how to make it work.. I've been using this code so far :


Code (html):
<html>
     <head>
           <meta http-equiv="refresh" content="0; url=YaBB.pl" />
     </head>
     <body>
           <a href="YaBB.pl">Loading X-PTCBox Forum...</a>
     </body>
</html>


But I just figured out what my problem was..   [smiley=lolx.gif]
All I had to do is fix the url from :


Code (html):
url=YaBB.pl


to :


Code (html):
url=http://www.ptcbox.me/forum/YaBB.pl


Pretty awkward bug now that I think of it, but it was you that got me thinking so  [smiley=z01-thanx.gif]
I think it's working fine now.  [smiley=crazy.gif]

Title: Re: Login issue..
Post by venkat on 13th Feb, 2013 at 2:08pm
Still the home page says "Please Login or Register".

The complete vbscript for the code I suggested is below:

[code]<html>
    <head>
         <title>..... Title goes here ..... </title>
    </head>

    <body>
        <%   
            ' This percentage symbol tells the browser to execute vbscript
            Response.Redirect("url=http://www.ptcbox.me/forum/YaBB.pl")
        %>
   </body>
</html>[/code]
Only thing is, this file should have extension of '.asp' instead of regular '.htm' (index.asp)

But, I think it depends on the forum software, not on what script we use, either PEARL or VBScript. So, I'm not sure whether my code would help.

Title: Re: Login issue..
Post by SolidSnake on 13th Feb, 2013 at 2:14pm
I don't get it.. it now works fine for me.. and it should work fine for you too..
You mean when you click here it doesn't keep you logged in?

When you type (or click here) x.ptcbox.me in your browser, to what address do you get redirected?

Title: Re: Login issue..
Post by venkat on 13th Feb, 2013 at 2:20pm
Yes. It doesn't show that I'm logged in. (It's saying "Welcome, Guest. Please Login or Register" when I click the link you've posted here.)

The URL I'm being redirected is "http://x.ptcbox.me/YaBB.pl"

Title: Re: Login issue..
Post by SolidSnake on 13th Feb, 2013 at 3:24pm

venkat wrote on 13th Feb, 2013 at 2:20pm:
Yes. It doesn't show that I'm logged in. (It's saying "Welcome, Guest. Please Login or Register" when I click the link you've posted here.)

The URL I'm being redirected is "http://x.ptcbox.me/YaBB.pl"


Oh there's the issue,  you should be redirected to http://www.ptcbox.me/forum/YaBB.pl.
Try clearing your cookies as it might help. Also you could try this too.. :

Click here : x.ptcbox.me
and immediately click stop before it redirects you to the forum homepage.

Then click reload so that it refreshes the received content from the ptcbox.me server.
Then it should redirect to the new updated link.


Title: Re: Login issue..
Post by venkat on 14th Feb, 2013 at 5:18am
It's working fine now. :)

Thank you. [smiley=z02-thanks.gif]

Title: Re: Login issue..
Post by SolidSnake on 14th Feb, 2013 at 9:33am
Finally, some light! :)
If anyone else faces such problems please let me know.

Title: Re: Login issue..
Post by Still_Sleeping on 14th Feb, 2013 at 11:45pm
I think my issue has to deal with my device, and not your site. I had the same problem with payza all day yesterday. :-/

Title: Re: Login issue..
Post by SolidSnake on 14th Feb, 2013 at 11:51pm

Still_Sleeping wrote on 14th Feb, 2013 at 11:45pm:
I think my issue has to deal with my device, and not your site. I had the same problem with payza all day yesterday. :-/


Make sure you refresh the page just like I described above... do you still face the same issue?

Title: Re: Login issue..
Post by Still_Sleeping on 15th Feb, 2013 at 12:05am
It logs me in right away now.. I still have try it when I'm not at home.

I'm refering to, my increasing issue with site's that just refresh the page when i try to login. I was having this issue on your site when i'm not at the house. I'm going to do some update's for my iphone and see if that helps, I been avoiding them.

Title: Re: Login issue..
Post by SolidSnake on 15th Feb, 2013 at 1:27am
Well, seriously it should work fine now. :)
Just make sure you refresh the page like I described a few posts above or delete your cookies so that new ones are created.

X-PTCBox Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.