I create a web application in ci bonfire. I installed 2 bonfire. One for front end and another for backend. Installation sturcture is like:-
projectName
Assets
Bonfire
Riadmin :- (It is another bonfire for admin panel)
Index.php
Now i am having a problem when i hit frontend "projectName" then the backend "Riadmin" is automatic logout and riadmin generate a log error like
ERROR - 2015-07-04 17:15:03 --> The session cookie data did not match what was expected. This could be a possible hacking attempt.
One this is to be notice that frontend is newly install but backend is copied fully from another project. The database is same for both.
How can i solve this problem.
Try changing the session cookie name in the application/config/config.php
like
$config['sess_cookie_name'] = 'bf_session';
to
$config['sess_cookie_name'] = 'ra_session';
Different session cookie for both of the installation.
Related
I've made a new installation of Voyager on XAMPP on Windows following the instructions at https://github.com/the-control-group/voyager
I forgot to install with dummy data so I added an admin user using php artisan voyager:admin me#mydomain.com --create however when I try to login I get the 419 | Page Expired error which I understand is usually an issue with Laravel sessions.
My versions are: Voyager v1.4 | Laravel v7.18 | PHP v7.3.2 | MySql v5.0.12
The following points maybe relevant:
If I look at the login page source code I don't see any reference to a csrf field.
Looking in the database the user exists in the user table, and I entered an email_verified_at date directly.
I notice there's no entry in the user_roles table. I don't know what minimum database entries are required to make it work.
I've checked that session files are being created in storage/framework/sessions/
There's no error log in storage/logs/
I set 'debug' => env('APP_DEBUG', true), in config/app.php (APP_DEBUG was already set to true in .env) and retried the login but not found any debug log file.
I'm new to Voyager and still learning Laravel. Any ideas please how to make it work please?
UPDATE:
After several refreshes of the login page I was able to login, but if I click any menu link it returns me to the login page.
UPDATE2:
Re-running the install with dummy data succeeded but it didn't alter the login session issue. However it works perfectly on another device, so it must be some kind of browser session issue particular to the one PC.
Incidentally running the install with dummy data did not add any entries in the user_roles table, but the admin role is assigned when viewed in the users screen (on my other device).
I was getting this same error, i was serving my app on 127.0.0.1:8000 and my SESSION_DOMAIN was set on localhost. Make Sure you SESSION_DOMAIN in your env is set to the actual domain the app is being served on. Theissue was fixed by running php artisan serve --port=80 and browing to localhost/admin to login
I'm working on laravel project which is working correctly in localhost but when I deploy on a subdomain on my server it is facing issues with sessions. I'm using session driver file. When I login, it says 419 your session has expired. It creates a new session file in storage/framework/sessions whenever I refresh that login page. But locally it creates only 1session file browser and log me in and do not show 419. Moreover cookie exist for localhost link in browser but did not created of my domain.
Please help
IN my case, issue was a space before PHP starting tag in routes/api.php
It can also due to space before an PHP starting tag in routes/* files or config/* files
and it can also due to if any of these files have PHP closing tag
enter image description hereI have created a web system using codeigniter. I don't have any errors while testing it in local host. after hosting the website to live host it generates some errors which cannot resolved. The errors is "session_start(): Cannot send session cookie ". I searched regarding this issue and did all possible changes in coding and config file. I have clearly define the session saving location in config. Also when I try to remove all session functionalities in my website, it generate another error which is "base_url() is not a function". Please guide further with solution. thanks all.
In application/config/config.php
$config['sess_save_path'] = sys_get_temp_dir();
Bang!
UPDATE: Regardless base_url() make sure you have the url helper loaded in the autoload.
I'm working on Magento 1.9.2.0. and I have a cookie problem on its config.
I found many topics the right way to config cookie but when
config 1: i put the domain path without dot(.) (domaine.com) login on device does not work.
config 2: if i put the dot, login on PC does not work.(.domaine.com)
Now, we have a multistore website. when you loggin (with config 1), the name in customer account changes randomly,
and config2 does not work(no one can log in).
Anyone can help me!
Actually, it was the cache. header template was not regenerated while reloading page.
After reseting cookies configuration, it works but still has connexion pb on mobile device.
I have install Laravel in my VPS, and it's working with the "public/index.php" in the url. I had tried lot more to remove this from url but all are failed, and I have to work with this. Currently I am working on the Sentinel authorization package. It's installed successfully but after login or when i click on the sentinal logo I always get redirected to the "http://myipaddress/tmb/" which is incorrect, so where I can set the home link so that it goes to the "http://myipaddress/tmb/public/index.php/". My laravel version is 5.1.20
The default config for the target URLs is the 'home' route. So you have to setup this route in your routes.php properly.
You can override the default routes in the config/sentinel.php file.
But anyway, it's very dangerous that anyone can access your whole application code directory. You should either forbid access to all resources which are not in /public directory or (much better) configure/ask your VPS to set the document root to your public directory!