Questions tagged [sessionid]

A session ID is a unique identifier that relates session data to a specific user.

A session ID is a unique identifier that relates session data to a specific user.

In an HTTP context, it is usually stored in a cookie and sent to the server on every request. The server uses the session ID to load the data that was persisted in the session.

The lookup process on the server can be either file-based (where the session ID is used as part of the file name), or from a database (where the session ID is used as the primary key).

636 questions
-1
votes
2 answers

Why is my session_id() not being passed to next page?

There may be better ways of doing this, but I'm pretty sure I should still get my session_id() passed to the second page. Instead, calling this on page 2 as my first few lines generates a brand new session_id() than the one created on page 1. PAGE…
user3866044
  • 181
  • 6
  • 20
-1
votes
1 answer

PHP: send session_id() via form

In order to prevent CSRF attack, should I to send the md5 hash of my session_id() in an hidden field via form? he would be enough? Thanks
Lilia
  • 139
  • 4
-1
votes
1 answer

Duda con opencart

I'm developing a TPV App for OpenCart to my final project of my advanced cycle called Administration of network systems. Going into the study of the database and when programming, I have problems with the CART table. It is necessary column…
-1
votes
3 answers

Not email PHPSESSID

After my customers place an order, I send an email confirmation using the following code, but I want to prevent PHPSESSID from being included in this email: $body = ""; foreach ($_REQUEST as $Field=>$Value) { if($Value != ''){ $body .=…
Bricked
  • 115
  • 1
  • 11
-1
votes
2 answers

The best way to persist a unique id on browser?

What is the best way to persist a unique id on a browser session in MVC.NET? Is there some session/cookie ID value by default? In my Global.asax, I could create a new Session["ID"] and use its ID property. There's got to be another way? I tried…
Pinch
  • 4,009
  • 8
  • 40
  • 60
-1
votes
1 answer

Tomcat 7 writing same JSession cookie on browser restart

I have the following configuration in tomcat configuration files : 10 myapp.mycompany.com true
Novice User
  • 3,552
  • 6
  • 31
  • 56
-1
votes
1 answer

What is session key in codeigniter 2 for?

I am a newbie of the CI framework. I am trying to understand what session id is for. Here is the description from CI doc: The user's unique Session ID (this is a statistically random string with very strong entropy, hashed with MD5 for portability,…
Troy
  • 95
  • 1
  • 1
  • 4
-1
votes
1 answer

Check if a session is logged in symfony2

I have a $token of a session. How can I check if the current session belongs to this token without using cookies? I tried some this: $token = strip_tags($_GET['key']); // Here I obtain the token of a user $session = new…
user2794692
  • 361
  • 2
  • 10
  • 24
-1
votes
1 answer

How to prevent access to php-file

I'am looking for a solution to prevent the access to my php-file. I' am calling a php-file via my homepage to make some database calls. To prevent others from calling this file I'am looging for a solution that only my homepage gets an answer from…
hamburger
  • 1,339
  • 4
  • 20
  • 41
-1
votes
1 answer

Why is regenerating the session not a solution for preventing spoofing?

After hours of reading and trying to understand sessions, this is my general conclusion/perspective: Simple (and realistic) situation: Attacker takes an existing website 'website.example.com' and put random SID behind URL '9gag.com/?SID=1234' …
user1178560
  • 313
  • 1
  • 4
  • 14
-1
votes
2 answers

php login script using specific username and password by session id

I wish some help . I need a php script using session id to redirect a specific username and password log in to a specific html form as no one except that user can reach links without logging in by this username and password (i.e no one can copy the…
Jasmine
  • 65
  • 1
  • 6
-1
votes
1 answer

Symfony2 - FOSBundle Where do FosBundle Store SessionIDs?

i wonder how can i manipulate sessionID**s in *FOS bundle Symfony2. i need Symfony 2 to be a Central Authentication system(kinda AAA). so I want to check Given SessionID*s from other applications requesting against **FOS and Update their…
morteza kavakebi
  • 1,640
  • 3
  • 18
  • 39
-2
votes
1 answer

PHP CURL get session_id from cookie authentication api

enter image description hereI want to know how to access session_id in cookie for curl api, i want to get session_id and pass to next api, in postman cookie session_id CURLOPT_HTTPHEADER => array( 'Accept: application/json', 'Content-Type:…
-2
votes
2 answers

Current.SessionID convert to Guid

I have requirement to create Guid based on SessionID from CurrentContext. That Guid is stored in some TraceContext class that is later logged to DB. Now I'm using Guid.NewGuid() for creating new guid, but I would like to create guid based on…
freshbm
  • 5,540
  • 5
  • 46
  • 75
-2
votes
1 answer

How can I set a cookie to remember the last login users Name and Email

How can i set a cookie to remember certain user details from previous session. What i want the browser to remember is the users Name and Email address and auto fill the users details except their password so that the login is convenient i want this…
user3132932
  • 31
  • 2
  • 6
1 2 3
42
43