After anytime I move between pages or reload the same page it logs the user out. It worked fine in 5.2 but when I upgraded to 5.4 this problem appeared. I don't know what to provide because I just used:
php artisan make:Auth
and made my front end the way I wanted it. It is connected to my database remotely and it works because if I put in bad information it does not work. When it logs me in it redirects me, I see my
{{Auth:check()}}
working fine because I see new links that weren't there when I wasn't logged in. However, anytime I move between any of my pages my naviagation bar goes back to if the user wasn't logged in. It seems as if it is not carrying the session information between pages.
Related
First - coming back to this project - never saw this issue before so asking if anybody else has - when I set the project down it was working perfectly. Additionally - several other projects on the same server using the same setup are working flawlessly.
So problem is this.
I login, the login is valid (I'm using DirectoryTree/Laravel to authenticate against LDAP, and have logs showing authentication was successful. All other projects are also using DirectoryTree/Laravel - and since the login is processing I cant see this being the root cause).
I'm immediately redirected back to the / (correct behavior) - but the login form returns instead of loading the vue components when auth:check = true.
I can hard refresh the page - and suddenly I'm logged in. (Must clear cache hard refresh at the browser) same action whether on Firefox, Chrome, Edge. The log in is processed - but its like the session isnt being updated.
I'm using the normal login form with the ui:auth setup.
Anybody ever seen this?
Turns out the issue was a web service worker I had forgotten I had on the HTTPS site. Best guess is its not recognizing that the site is online and is reloading information from the cache as it is a PWA application meant to be used on the internal network of the company. Once I removed the service worker - all was good. Never saw this action from it before so will investigate that further, but I have at least found the main error.
Closing this question and shout out to #Wesley Smith for getting my brain working.
I am having the strangest error come up on a site that I am working on. For a while we have had the site in admin only view so we could work on things without any users logging in. Was fine during this phase.
Today we opened up the site to a handful of people to sign up and test the site out. As people started coming in however, every user was getting this error:
"can't open file" with a white screen
The error first pops up when the user tries to register and gets to the final page. This is the part that is supposed to tell the user that a email confirmation link has been sent to them.
Once this error pops up, the error will continue to display for all pages until they clear their cache.
Changes that were done:
1: Prior to opening the site up, the .htaccess was edited to prompt a initial login box (this was done to prevent others from accessing the site while we were moving to a 'beta' phase). I also added a .htpasswd file that contained the details for the users to enter to get to the site. I have tried to delete this edit thinking that it was this acting up, but did not work, error was still displaying.
2: Checking and repairing the joomla session table within the database - my thoughts were that perhaps it was a session issue since it was triggered when the user went to sign up and complete the registration process. This did not work.
3: One of the components that we were using needed a custom edit to the session.php file. "/libraries/joomla/session/session.php" - I reverted this file back to the original, however the error still comes up. Did this, thinking it was session related as the point above)
4: I cleared all cache and purged all expired cache, this had no effect. I also cleared all cache as I did the previous 3 items as well.
So now I am completely stumped on how to go ahead and get this working correct. The error that displays is VERY vague and leaves no information other than it 'can't open file'
Joomla Version: Joomla! 3.4.8 Stable
PHP Version: 5.6.16
Web Server: LiteSpeed
Community Component: EasySocial
Subscription Component: PayPlans
We've sorted this now I think. Looking in the logs one of the site plugins was using the ftp layer to open a file which had been created directly by Apache, and so the permissions didn't allow it.
I've change the permissions now and the error condition seems to have gone.
I have been working on project. It was working all fine before taking update. Now it stops working on my system while it is working perfectly on other's system.
Problem - it is redirecting back to login page despite dashboard, after entering correct login credentials. It is also creating a new session on refresh of page in session folder.
Any help in highly appreciated.
I am developing a custom theme for our Drupal based website, and I needed to log out to check on the look of the site for an anonymous user.
Once I logged out, I could not log back in. I tried several admin accounts, on several computers, and none of them worked.
Thankfully, my laptop loads the website logged in as admin. From there, I can clear the cache (as well as with drush), and I can see the server logs as well.
Interestingly enough, when I attempt to log in as a user, the logs show that a session has been opened for that person, but the browser on the user side just refreshes back to the home page and does not log the person in.
My admin skin is set to Bluemarine, so unfortunately that isn't the issue. I also changed the sites theme to Garland, and I still have no luck logging in with any other login or computer.
I am thinking my next step will be to revert to an earlier version. Although, it would be great to find out what I did to break it so I don't do it again.
try surfing to http://your_domain/user
it will take you to the login page.
Using symfony framework 1.4 I have created a website. I'm using sfguard for authentication.
Now, this is working great on WAMP (windows). I can login to several accounts on different browsers and use the website.
I have ubuntu server 9.10 running apache (everything up to date and default configuration). On my server, when I login to the website in one browser it works great. When I on my other computer login with another user account on the public website, the login is successful. But when I refresh/go to another page the first user is shown as logged in instead!
Also, when I press logout, It's not showing that I'm logged out after page load. When I press f5 again I'm logged out.
As mentioned, all this works as expected on my local installation. I'm thinking there something wrong with my PHP session configuration on my ubuntu server, but I've never touched it..
Please help me. This is a school project and I'm presenting it today :(
It's unlikely to be the session handler (certainly not the problem if you are using the default handler). Top of my list of things to check is whether you are sending out the right caching information in the authenticated pages (i.e. either no-cache or Varies: cookie).
C.