Servelet Login blank page when i try to login - authentication

I have a Java web application using JSP and servlet, it works fine, but some times when all users are try to login using correct username and password, the web app returns "servelet login" error with blank white page. i dont know why it happens, but when i restart the server it works fine for some days. please help me, i try googling but i didnt get anything.
screen shoot of my java webapp affter i try to login using correct username and password. the first page i.e login page UI loads perfectly, untile i click on login button
i try to login using correct and incorrect credential, in both case it returns servelet login blank page screen. i used apache tomcat server, mysql and windows server 2016

Related

Cypress automation : Session not getting cleared

Once I enter user Name and click on login, it should ask for password but it is directly login into application. If I try manually it is working fine but through automation it is directly login in and failing as password field is not found. Below is the code for login
cy.visit("URL");
Cypress.session.clearAllSavedSessions();
cy.clearLocalStorage();
login(username,password).
Expected : Each time I launch browser and application, it should ask me password.

How does a server distinguish a FormsAuthenticationTicket cookie (C#)?

I have got forms authentication working in my website. But one thing I don't understand. I had a test website and a production website, both using identical database and code. When I logged into the test site, then try to go to the production one, I still need to login. Why?
I thought the login mechanism is this:
After user password is checked fine, the server insert a FormsAuthenticationTicket cookie into client's browser.
When browser attempt to go to a page that requires login, the server checks that cookie. If it is there, then it sends that page.
If my test site has placed that cookie into the browser, now that browser goes to the production site, how did the production site know "I didn't place this cookie and therefore I still require you to login"?
I found out. Because the authentication cookie is only visible to the website that inserted it. A cookie inserted by "www.mysite.com" is invisible to "www.othersite.com".

AbpSession.UserId return null after login

I used Asp.Net Zero (Asp.Net Boilerplate framework) in a project.
There is a problem on Chrome (some computers) and Internet Explorer (all computers) :
When authenticating with login information, the response returns with success.
But when redirect from login page to the app, auth-guard.service check current login information. This time, the application tries to get UserId from AbpSession and returns null, also page redirect to the login page again, although login was succeed.
Can anyone help me? Thanks.
Check your browsers whether they accept cookies.
When you login, you have to see the at least Abp.AuthToken and enc_auth_token cookies. You can use EditThisCookie editor to see your current cookies easily.

Jboss Wildfly 8.1 session timeout on login page

I have an application running on JBoss 8.1 with JAAS form based login (j_security_check) and everything works fine.
My problem is:
1) the user logs out and is redirected on the login page
2) here a session timeout occurs (the user doesn't know this)
3) the user returns and logs in correctly
=> BAM: he is redirected with j_security_check (the URI ends with j_security_check), but the page is empty.
My guess is: JBoss doesn't know anymore the previously requested page, because the session timeout occurs and this information is lost. So JBoss doesn't know where to send the now logged in user and the page stays empty.
I found some posts but no real answer/solution for this problem.
Thanks for your help!

Joomla PHPmaker authentication

I have already created my webpage with PHPmaker. An now I have install Joomla for my Homepage. Now My client has two username and password to login with this PHPmaker and Joomla created webpage.
I want to creat a plugin for joomla as when my user login to the joomla it automatically login the PHHmaker webpage too. So that my client can login the two website with a single login page.
Please guide me.
Note :- Joomla authentication for PHPmaker webpage.
In case you REALLY want to do it this way, you can get details on how to build the remote Joomla login portion here -
Logging In To Joomla 1.5 Using External Form (not within joomla folder, but on same server)
You will need to pass login credentials to PHPMaker via script and this will create session which you can use in Joomla too or else if you have used UserTrack settings then your user session data will get stored in user table into Usertrack field you could validate your user details and use Usertrack field and use that.
Kindly let me know whether that worked for you.