session-variables Questions
1
First, I set John to the user-defined variable @name as shown below:
SET @name = 'John';
Then, I set David to @name in a transaction, then rollbacked as shown below:
BEGIN;
SET @name = 'David';
RO...
Doordie asked 14/12, 2023 at 22:59
1
I use the following query in my trigger to store user's ID for further use:
SELECT set_config('session.my_username', 'john', false);
Later, in other trigger I use it this way:
SELECT current_setti...
Swami asked 18/1, 2021 at 0:50
13
Here are the code of my login page where the login script checks for the authenticity of the user and then redirects to inbox page using header function.
<?php
session_start();
include_o...
Cutlass asked 30/10, 2013 at 19:28
16
Solved
Can someone tell me why the session vars are not passing between pages? They were working up to 2 days ago. Now its not? There is a third party system that logs users in based on the third party sy...
Bedroom asked 1/6, 2011 at 11:48
28
Solved
I have a PHP file that is sometimes called from a page that has started a session and sometimes from a page that doesn't have session started. Therefore when I have session_start() on this script I...
Beitnes asked 6/6, 2011 at 9:0
5
Solved
I am setting a session variable in one method and trying to get the session variable value from the another method in a controller but its always getting null:
Here is my code:
public class HomeC...
Melda asked 11/4, 2018 at 8:44
5
I'm getting an error, the full error is:
Fatal error: authnet_cart_process() [<a href='function.authnet-cart-process'>function.authnet-cart-process</a>]: The script tried to execute a ...
Twoup asked 18/12, 2013 at 17:10
3
Solved
How can I remove an error message from a MessageBag?
I've been trying to remove a specific element from the message array that MessageBag uses without any luck.
I'm getting the same error message...
Cristincristina asked 3/9, 2013 at 12:20
3
Solved
I am trying to get session like this
@HttpContext.Session.GetString("some");
But I am getting
*
An object reference is required for the non-static field ......
*
Any one with ideas?
Schleicher asked 29/4, 2017 at 18:1
4
In my company, we make login in one application (non-Laravel). When the login is made, we store the session info in the $_SESSION variables, like $_SESSION['XPTO'].
The user has access to a lot of ...
Massicot asked 11/10, 2016 at 12:52
8
I am trying to create session like below code but session not working please sussgest me any soluton.
Save
$data = array(
"id" => $row->id,
"name" => $row->name
);
Session($data);
...
Corked asked 30/12, 2016 at 14:54
1
Solved
Laravel in PHP made this easy with https://laravel.com/docs/9.x/session#flash-data, so I figured Next.js would have an easy way too.
I thought I'd be able to do something like:
export const getServ...
Eller asked 11/5, 2022 at 18:44
1
I am working with 5 different websites which have short session life, they log out in 10 - 15 mins of inactivity.
I came up with browser extension to do the jon for me.
and what I did so far:
relo...
Ham asked 26/11, 2020 at 9:10
3
Solved
I am creating an ecommerce application, wherein i have a shopping cart. My current structure is, whenever user saves the product, i put the product in the datatable and datatable to the session, so...
Madras asked 22/8, 2013 at 11:33
1
I'm trying to find a way to use the Joomla extension Hikashop in parallel with another external website built with Laravel.
I'm using :
Laravel 5.5
Joomla 3.8.x
Here is how the setup looks (e...
Allenaallenby asked 11/1, 2018 at 10:51
9
I have a website www.example.com. That will have multiple subdomains that work with a single application or program. For an example, login.example.com will allow the user to log in to the site whil...
Odonnell asked 5/2, 2012 at 22:32
2
Solved
Environment: Express, express-session, Stripe
In the following simplified example when a user requests the home page express-session assigns the user a session cookie. Refreshing the page retains t...
Aldebaran asked 8/9, 2020 at 19:40
8
Solved
I need to get all sessions data and take some actions upon them, is there any possible way to get them, I found how to solve it in php but codeigniter use's it own custom sessions library.
Native ...
Academia asked 3/3, 2014 at 14:48
2
Solved
I would like to know whether is it possile to retrieve the session object and access its attributes from a Thymeleaf template without any controller code.
Condescendence asked 17/12, 2013 at 10:49
4
I need to create a row number by group. In mysql I use "user-defined variables" for that.
But in Athena is gives me an error: no viable alternative at input '@'
Here is my query:
SELECT @row_num...
Bobseine asked 21/8, 2017 at 13:42
3
Solved
SITUATION: MySQL query uses value, delivered from outside. This is done by declaring and initializing a session variable, that remains valid until the end of session:
SET @id = 0;
SELECT * FROM m...
Buckley asked 22/7, 2014 at 20:45
3
Solved
How does one share session in ASP.NET Core 3 between 2 servers (load balanced)?
And can session be shared between several web services/APIs and the main ASP.NET MVC app?
I am very new to .NET Core ...
Michel asked 20/3, 2020 at 4:37
2
Solved
I am trying to prevent CSRF in php in the following way:
A $_SESSION['token'] is generated at the start of each page. I already know that using $_COOKIES is completely wrong since they are send a...
Isobath asked 18/11, 2015 at 9:23
6
Solved
As in question. Is it possible to set variable in asp.net page in localStorage and retrieve it on the other page?
How to set localStorage variable in asp.net. Is it possible?
After that I could re...
Vagrom asked 24/10, 2013 at 9:20
4
Solved
I have been looking around for a way of doing this. I know it is possible to store an array in the session with the following: Session::push('user.teams', 'developers');
Is it possible to do the s...
Ackler asked 4/11, 2013 at 21:48
1 Next >
© 2022 - 2024 — McMap. All rights reserved.