Login From Another Site?
#11
Rohan Shenoy Wrote:
Hockey Foo Wrote:Two questions:

1.) Is there any way so that once they hit the Login button it goes back to the page they were on?
I have made some changes in the code posted above in post#3. Use it now. Remember to change the action attribute in the first line of the code.

I got it so that it goes back to the page you logged in from, but now it does not log me in. Sad
#12
Thats unexpected to me. Wait I shall try something on my local machine and get back!
#13
Rohan Shenoy Wrote:Thats unexpected to me. Wait I shall try something on my local machine and get back!

OK, thanks for the help. Smile
#14
Well, it worked on my machine. What do you mean by 'does not log me in'. If you visit the forum does it require you to log in again?
#15
Rohan Shenoy Wrote:Well, it worked on my machine. What do you mean by 'does not log me in'. If you visit the forum does it require you to log in again?

After I hit the login button it takes me back to the page I was just on (The page I logged in from), but then when I go to the forum it says I am not logged in.
It only works if when you hit login it takes you to the forum.
#16
Hockey Foo Wrote:
Rohan Shenoy Wrote:Well, it worked on my machine. What do you mean by 'does not log me in'. If you visit the forum does it require you to log in again?

After I hit the login button it takes me back to the page I was just on (The page I logged in from), but then when I go to the forum it says I am not logged in.
It only works if when you hit login it takes you to the forum.
Ok, the cookies aren't being set. I fiddled with some settings on my test board and also faced the same issue as you are. This is how I got it to work.
1. Login to your admin CP.
2. On left hand side menu, under board settings(2nd block), click on Change.
3. Click on General configuration(2nd link) and check the cookie path. By default it is a forward slash("/"). When it was set to default, I could get it to work. Try it and let me know!
#17
Rohan Shenoy Wrote:
Hockey Foo Wrote:
Rohan Shenoy Wrote:Well, it worked on my machine. What do you mean by 'does not log me in'. If you visit the forum does it require you to log in again?

After I hit the login button it takes me back to the page I was just on (The page I logged in from), but then when I go to the forum it says I am not logged in.
It only works if when you hit login it takes you to the forum.
Ok, the cookies aren't being set. I fiddled with some settings on my test board and also faced the same issue as you are. This is how I got it to work.
1. Login to your admin CP.
2. On left hand side menu, under board settings(2nd block), click on Change.
3. Click on General configuration(2nd link) and check the cookie path. By default it is a forward slash("/"). When it was set to default, I could get it to work. Try it and let me know!

I'll try it once I get logged out. I keep getting a stupid error that says some JavaScript is trying to log me out, so I have to wait a few hours.
#18
Hockey Foo Wrote:I'll try it once I get logged out. I keep getting a stupid error that says some JavaScript is trying to log me out, so I have to wait a few hours.
Just clear all your cookies and you will be logged out immediately.
#19
Rohan Shenoy Wrote:
Hockey Foo Wrote:I'll try it once I get logged out. I keep getting a stupid error that says some JavaScript is trying to log me out, so I have to wait a few hours.
Just clear all your cookies and you will be logged out immediately.

Still didn't work.
#20
Hockey Foo Wrote:Still didn't work.
What didn't work out? logging out or setting the cookies?


Forum Jump:


Users browsing this thread: 1 Guest(s)