Jump to content
TNG Community
mkoche

Ajax and Logging In

Recommended Posts

mkoche

I have been ignoring a problem with one of my mods -- show all family - for a long time. The ajax file causes the tng login system to revert to the new page after login.  I read the few discussions about similar problems I could find, stared at the code from all the ajax files in other mods and from tng that I could and finally had to invent my own solution.  I created a session variable on the get person page that records the results of session8 in another session variable. Then I reset the session variable in my ajax file to the dummy session variable I had created.  This reverted the session8 variable back to the correct page location (thereby not interfering with the way that logging in works) and has seemed to fix the problem.  (Tng evaluates this session variable to know where to send the user after logging in).

Just sharing this because

1. Anyone know a better solution? 

2. Thought it might be useful for someone else. 

Cheers, Scott

Share this post


Link to post
Share on other sites
Ken Roy

Scott,

Maybe you should share your findings directly with Darrin.  I know that TNG does not return the correct page on a login in my case but I always interpreted that as caused by my having more than one tab pointing to the site.

Share this post


Link to post
Share on other sites
RickM
1 hour ago, Ken Roy said:

Scott,

Maybe you should share your findings directly with Darrin.  I know that TNG does not return the correct page on a login in my case but I always interpreted that as caused by my having more than one tab pointing to the site.

Scott,

I will second Kens advise.. Might help solve another Login issue too!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×