Most voted "session" questions
A session refers to all requests a single client makes to a server. The session is user-specific and for each user a new session is created to accompany that user’s entire request.
Learn more…416 questions
Sort by count of
-
0
votes0
answers47
viewscheck if you are logged in to a specific session
Good afternoon, guys. I’m in trouble and I can’t think of a better place to fix this than here: I have a website that both admin logins with access to common roles and members will access. The doubt…
-
0
votes2
answers196
viewsUsing data saved in a Session
I modified my question because I was able to solve the problem of the session. But now I have another question. I have this code in Controller to capture the data passed by parameter and save them…
-
0
votes1
answer4772
viewsCreate session variable when logging in - Laravel
Good morning, I’m going through a site made in Laravel, which I didn’t do. I need to do the following: When the user logs in, I want to take a specific value ("idLoja" column) from that user in the…
-
0
votes1
answer1300
viewsUpdate an Asp section variable without refreshing the page
I’m racking my brain trying to solve this problem, but to no avail... I am with a virtual store created for another programmer who disappeared. For varying code is no documentation. To calculate the…
-
0
votes1
answer78
viewsaccess a page via https loses session variables?
Good afternoon. I have an application running on the internet and would like some pages to be run by https and not http. I’m testing like this: I enter the application in an http page. This http…
-
0
votes0
answers240
viewsHow to force sign in with Android?
I’m having trouble developing a piece of my app. Come on. First I need to click on a button and access a certain link and then the application return me a PDF. This already exists through the…
-
0
votes1
answer249
viewsHow to set a timeout for a particular action in Java?
I would like to set a timeout for a particular action on JSP pages, which should work with the following conditions below: When I click a button for example "Travel", the page should somehow save…
-
0
votes3
answers993
viewsError using $_SESSION[] with unserialize: "expects Parameter 1 to be string"
I need help finding an error. From the looks of it is a signature GOOD who’s showing up before the session_start(). I’ve searched all the files (by Notepad++) and everyone is utf-8 sem BOM. The…
-
0
votes2
answers1901
viewsPHP Logout with Cookies and Sesssions
I’m having a problem when it comes to logout on my site, because when I only use Sesssions it logout normally, but when I use Sesssions and cookies to remind the user, I need to leave twice,…
-
0
votes1
answer30
viewsUpdating session ID for added security
for me to keep my session data more secure, I can update the session id on each page by staying as follows: if (!isset($_SESSION)) { session_start(); session_regenerate_id(); } This will overload…
-
0
votes1
answer204
viewsProblem doing refresh of quantity shopping cart C#
By refreshing the quantity already in the shopping cart, I can only refresh the quantity of a product, if I have 2 products in the cart I can’t refresh one of them. Imagine that the 1st product has…
-
0
votes1
answer456
viewsC# Windows Form - Doubts about Session
I need to save information for as long as the user is logged into my software, I searched and saw that for web pages made with ASP.NET there is the object SESSION, but and for Windows Form? the…
-
0
votes0
answers37
views'Pdoexception' permission problem
I’m getting a permission error to create the Huge Login: Fatal error: Uncaught Exception 'Pdoexception' with message 'SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost (using password:…
-
0
votes1
answer136
viewsDoes an http request on a JSP page open a session?
I have a web application that contains some JSP pages that return a JSON. This application has a large access flow, and I noticed that there are many open sessions in the Glassfish server monitoring…
-
0
votes1
answer1148
viewsUser when logging in has 2 types of menus and before that the system must understand whether it is logged in or not to display another menu
Personal in my code above, I am trying to display 2 types of menu for the user, when logged in, and not logged in, in case when logged in it still mounts another menu comparing which type of user is…
-
0
votes2
answers905
viewsAuto-sign in to hybrid apps?
I made a login system that searches user in bd,I’m new in mobile development, and wanted a light (idea) how to login automatically after the first access. Just like the Whatsapp or face you enter…
-
0
votes0
answers253
viewsUsing Claims to replace Sessions
I am refactoring an application that I am developing, applying good practices in ASP.NET MVC, there arose a difficulty in understanding Claims and how to apply it to replace the Session use. When I…
c# asp.net-mvc-5 session authentication asp.net-identityasked 9 years, 2 months ago Anderson Souza 376 -
0
votes1
answer249
viewsPrint a session variable via the Twig engine
I entered a variable in the designated session $_SESSION['ano']. I would like to print your value on a page using Twig. I’ve tried to: {% for ano in app.session %} {{ ano }} {% endfor %} But it…
-
0
votes1
answer37
viewsJavascript e Asp.net [Vb] webforms Session
I have a javascript method that returns a string, In the case: var hash = PagSeguroDirectPayment.getSenderHash(); how to put this hash variable in a Session and read this Session in Asp. Dim hash as…
-
0
votes2
answers189
viewsHow can I not let the session expire in Joomla when it closes? (or last longer)
I have a building component installed. It has the option to add properties to favorites and creates a list, but when I close and open the browser, regardless of how long it was closed, it deletes…
-
0
votes2
answers259
views -
0
votes1
answer141
viewsSending from Session to email
I need to send a "cart" via email and I’m using a session. Basically I just need the products to be sent to an email (gmail). This is the shipping code. Please help a newbie! <?php…
-
0
votes1
answer180
viewsProblems with tokens stored in Session?
I am developing an application in php and in the authentication part I have the following code : public function chamaApi(){ // chamada na api via curl $profile = json_decode($response);…
-
0
votes0
answers1634
viewsClose PHP Session
Hello! In my php file I have the code page php. session_start(); $valor = isset($_SESSION['usuario']) ? 'S' : 'N'; if($valor == 'N'){ header('location: .'); } echo "Sesssao: ".$valor; to exit, in…
-
0
votes1
answer1406
viewsHow to delete an item from the cart? - Session
Hi, I’m making a shopping cart and I can’t seem to delete an item from Session. I’ve tried several ways, but I don’t understand why it doesn’t work. Could someone give me a light? (I’m new to php)…
-
0
votes1
answer224
viewsAuthenticate with Session Storage
I have a login screen, where if the user logs in a Sesssion Log with the necessary information, I also saw how I can read this saved information, but how do I open a page through the URL to check if…
-
0
votes0
answers119
viewsPull logged in user information without using Auth::user()
I have an application developed with Laravel that has some small. php files in the public folder that are loaded in a certain view. I need to pull user information logged in in these files, but I…
-
0
votes2
answers220
viewsphp global variables
Hello, I think this is simple, I am working on a project in which I need to start 3 strings on 80% of the system pages, in php, so what would be the best method for the user to just change the text…
-
0
votes1
answer100
viewsAssociate logged-in user with your information?
After doing "Session", how do I bring the logged in user information? i know it’s not just creating a session, I need to bring user information like Name/Nickname, avatar, email etc.
-
0
votes1
answer150
viewsSession with Ilist on Asp.net mvc5
How do I create a Session with values from an Ilist array on Asp.net mvc5? If so, how do I foreach to get this information in the view html?
-
0
votes1
answer158
viewsDoes Entity Framework need Session and Httpcontext?
I watched some videos about Entity and saw two different versions, in a first was something simple and direct (I believe the raw form of the Entity), where it just instantiated the context of the…
-
0
votes0
answers33
viewshow to solve php session problems
Work in a company, that makes use of web applications (php) the page was well developed, but there are small details that could improve processes, I’m not developer yet! But I’m studying to become.…
-
0
votes1
answer283
viewsSession vs Database Query
Guys, I’m in doubt here. Inside my control panel, I will need to get user id, email, password (only to change password) name, over name, etc... The ideal would be to save all this in a session at…
-
0
votes2
answers51
viewsAndroid storage
I am starting in the universe of Android, and I have the following question: In a login system, which type of storage should I use to persist the data of the user who logged in to that session, and…
-
0
votes1
answer527
viewsPHP - Setting SESSION time on already defined functions
I need to set the SESSION time of my site, which I took from another developer. Session settings are used from a ready-made file, Session.php Follow the code of that file: <?php // classe para…
-
0
votes1
answer1062
viewsManage Session as an array
I wanted to know if there is any way for me to save two values in the same variable Session as if it were an array, because I want to save both the value of input text and the wysiwyg element by…
-
0
votes0
answers64
viewsSession in PHP resetting?
I’m setting up a system and when the person logs in creates the sessions normally, example: $_Session['logado'] = 'S'; But when I redirect to the main page, the session is simply reset and empty,…
-
0
votes2
answers533
viewsHow to delete PHPSESSID
I’m making a cart with $_SESSION and when the purchase is completed, should clean or delete the PHPSESSID (self-created). But I’m not able to delete or update. I’ve tried with unset() and…
-
0
votes0
answers355
viewsHow to use Session in php android
I’m creating an android app, where when run asks login and user The android checks login and password in a web service made in php Till then all is well that all is going well . but when I ask for…
-
0
votes1
answer678
viewsShow button if logged in/ hide if not
I want to show the "panel" button if the user is logged in, and if they are not willing to show the login button, and it is possible? Just follow my code... <?php if(isset($_SESSION['usuario'])){…
-
0
votes3
answers1959
viewsHow do I restrict access from a page to logged in users?
I am login and registration system with 2 levels (1 corresponds to the common user and I want it to be redirected and level 2 is ADM, ADM have no problems). Be able to redirect to the site the…
-
0
votes0
answers902
viewsIncrease SESSION life in PHP
I built an API using PHP to use it with Applications. When I exit the application (without closing it or logging out) after a while the session expires disabling the activity in the application and…
-
0
votes0
answers112
viewsUpdate all open tabs in the brownser of an aspnet application mcv c#
Hello. I am developing an application and wanted when a user login or login to update all tabs that the application has opened in the browser. Example: User João is logged in to the tab 1. User…
-
0
votes1
answer50
viewsKey keys in session
I would like to save and recover an array session in Laravel type in PHP Example: in the PHP: $_SESSION['dado']['dado1'] = $valor; Recovering echo $_SESSION['dado']['dado1']; In the Laravel I’m…
-
0
votes0
answers26
viewsSet value in Database session
I’m trying to use a database session SESSION_DRIVER=database I would like to know how to set the session in the specific column also I’m trying like this Session::put([ 'login' => $login ]); But…
-
0
votes2
answers667
viewsKnow all the $_SESSION
I have a doubt and I searched and I found no corner an answer, I wanted to know if it is possible to give a echo $_SESSION and know all the session that my browser has at that moment and if yes as?…
-
0
votes1
answer95
viewsLogged in user can enter the login page
when the user logs in he creates sessoes and goes to the panel, but he still has access to the login page. how to send it back to the.php panel when it tries to go to the login page? sessoes: $user…
-
0
votes1
answer33
viewsHow do I save the user session to a website stored on AWS - S3?
At AWS we may use the S3 service to provide static websites. Seundo to documentation static means not using back-end like php, Asp.net, etc. However, I can load content dynamically through…
-
0
votes1
answer1531
viewshow to log off automatically after the session has expired?
I am having problems, if the user is inactive for more than 24 minutes, the page remains the same. If I’m on my page and the session is expired due to inactivity (it’s past 24 minutes), I can still…
-
0
votes1
answer36
viewsHow to update a column once per page viewed?
I’m trying to create a hit counter, this code updates my column 1 time per session, but what I want is to update my column whenever the user views a new page. if(!isset($_SESSION))session_start();…