44,237 questions
3
votes
2
answers
44k
views
Session timeout in Python
import requests
headers = { 'Accept':'*/*',
'Accept-Language':'en-US,en;q=0.8',
'Cookie':'Cookie:PHPSESSID=vev1ekv3grqhh37e8leu1coob1',
'Cache-Control':'max-age=0',...
2
votes
3
answers
3k
views
Express Js/AngularJS cookie session lost
I'm new to express and I'm trying to save some data in session and then retrieve it in another query. My client app is an AngularJS app.
var express = require('express');
var path = require('...
4
votes
1
answer
9k
views
Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start()
This is a screenshot with the error dump:
I occassionaly get this error while browsing a website i am developing. Obviously session can't be started but i have no idea how to prevent this error ...
Best practices
1
vote
0
replies
29
views
Where should I create the application session when using an internal SSO (Gin + OAuth2)?
I’m integrating an internal SSO (OAuth2) into a web application using Gin (Go), and I’m a bit unsure about the right place to create the application session.
The SSO is the only authentication ...
0
votes
2
answers
208
views
Hibernate + OSIV. 2 transactions. Repeatable read
This article states that if we use 2 transactions one for getting first data and afterwords to get the lazy fields, we won't run into any problems since the session is reused and the session itself ...
22
votes
2
answers
8k
views
API Authentication for PWA
The Setup
We’re building a PWA (progressive web app). The main components are the app shell (SPA) and the API. The REST API will supply the data needed for the app, while the SPA will handle the rest (...
0
votes
4
answers
12k
views
How do I get session_id() from cURL
I have a few questions about cURL:
Do I need to use session_start() with cURL?
If not, how do I get the session_id() from cURL?
When is that session_id() generated?
What's the difference between ...
1
vote
0
answers
22
views
How to setup session and user_id as soon as the method is called? (Codeigniter)
I have these two methods responsible for adding users from another system in that system.
private function api_login($email, $password){
$curl = curl_init();
curl_setopt_array($curl, [
...
0
votes
0
answers
398
views
codeigniter session doesn't work in my desktop
I'm making website using web framework that is codeigniter.
When i use session, It doesn't work. So i visit codeigniter forum that is also made up of codeigniter. Then i login that site. But same ...
4
votes
1
answer
16k
views
Fatal error: Call to undefined method CI_Session::sess_destroy() 1.7.2
My current version of ci is 1.7.2 but ehen i am using
$this->session->unset_userdata('uid');
$this->session->unset_userdata('email');
$this->...
2
votes
0
answers
139
views
how to check user male or female using session in codeigniter 3 [closed]
** in codeigniter How do i check if user logged in is male or female by using session id to compare data from $this->brid_groom_fetch->get_program_specific_gender() function**
public function ...
0
votes
3
answers
9k
views
How to Assign Session variables using JavaScript in asp.net
I want to Assign session variable using JavaScript. I find this code that works fine
function SetUserName()
{
var userName = "Shekhar Shete";
<%Session["UserName"] = &...
0
votes
1
answer
1k
views
Trying to create a simple shopping cart in PHP with sessions
I've got an assignment where we're supposed to create an eCommerce website that pulls products from a database, lists them and allows you to add them to a cart, though only a single quantity of the ...
8
votes
1
answer
12k
views
Session info is lost in Chrome (but works in other browsers)
This is perhaps the same question as Session data lost in Chrome only and related to Randomly Losing Session Variables Only In Google Chrome & URL Rewriting
There are no solutions there that will ...
1
vote
2
answers
513
views
Session element not accessible despite var_export() showing it populated
Can't access array but var_dump() sees it.
session_start();
include './entities/Answer.php';
include './entities/Question.php';
include './Database.php';
if (isset($_SESSION[&...