Category "session"

How to use $this->session->set_userdata in codeigniter

I have some promblem with CI when i use $this->session->set_userdata Controller public function check_login() { $email = $this->input->pos

why does postgres set_config's is_local = true not persist the variable for the whole transaction?

I have a function that uses set_config with is_local = true to set a variable. Now I expected that a select statement using the variable with current_settings w

next.js iron-session req.session.user is undefined

I'm making a dashboard for my team's bot using next.js and iron-session. However, when I save the session and check it, req.session.user is undefined. How can I

CI->session->userdata['email'] Undefined Index

### I'm running a PHP script on Web Hosting and continue to receive errors like: ### A PHP Error was encountered Severity: Notice Message: Undefined in

ASP.NET not sending session cookie

What would cause ASP.NET to not send a session cookie to the client? I've noticed that, first of all, "ASP.NET_SessionId" cookie is set in both the Request.Coo

Django retrieve sessionID created with Login

I am using Django 1.9. Base on the Django documentation: " To log a user in, from a view, use login(). It takes an HttpRequest object and a User object. login()

best way to store error messages in Laravel (session or variable)

I'm trying to find out what is the best way to store error messages (due to wrong parameters for e.g). Assuming I'm declaring the accepted parameters in the Co

How can I persist Laravel session data using Inertia Vue?

I'm having trouble updating session values using Inertia.js. The behavior I was expecting was that the redirect to 'Home' would happen only once. Once the sessi

Check if user has alread visited site in browser session

So I have this splash screen animation that plays when you visit my website. However, I only want the animation to play the first time you visit it (in the sess

What is the best way to manage a user's session in React?

I have a doubt about how to manage a user's session in React, for example in MVC .NET you only just do this using the Session object (e.g. Session["test"] = "";

secret key not set in flask session, using the Flask-Session extension

Right now I am using a flask 3rd party library Flask-Session and I am having no luck getting a session working. When I connect to my site, I get the following e

Express Session Does Not Save After Redirect

In my production app, saving data to a session then redirecting is completely unreliable. A console.log after saving the session shows the data has been attach

Heroku session unexpectedly dropped/created

I am running an application on Heroku. We have a staging site and a production site. We are attempting to move to a standard 0 tier database. I have successfull

Artisan command for clearing all session data in Laravel

What is the artisan command for clearing all session data in Laravel, I'm looking for something like: $ php artisan session:clear But apparently it does not

Authentication between different applications through sessions (React + Express)?

I'm developing a React + Express website and I'm in doubt on how to implement the login functionality since it depends on another application. Let me explain it

Laravel 5 session not persisting after user is logged in

I'm having an interesting issue with Laravel 5. After logging in a user, the logged in status is not persisted across pages. Clearly it has something to do wit

retrieve data from database using session

Hi I had read topics here and tried doing it in different ways but my problem still not solved. I tried storing session and use it to retrieve data again from t

req.flash() not working after req.session.destroy()

Based on a condition, I need to destroy user's current session, and redirect him to a login page with a message. I use flash to have a show-once-only message. E

Laravel - Browser displays message again when I press back button

Every time I create a new category in my application, it displays a message of success. Here is my code: return redirect('dashboard/categorias')->with('mess

Ruby on Rails session[:counter ] increases by two

I am studying pragmatic bookshelf lessons. I try to make a session counter. my store controller is class StoreController < ApplicationController def