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
0
votes
1 answer

Symfony2: new Session() give error "A session had already been started..."

I'm amateure in symfony. I want use Session_id in my code when i change php.ini and set session.auto.start variable true i give a symfony error after false this parameter i should use $session = new Session(); but now i have a new error, when I…
Mahdi Sabori
  • 77
  • 3
  • 12
0
votes
1 answer

php session id changes on ajax post

I'm having an issue when I make an ajax post from sub.mydomain.com to domain.com. I've set the cookie to be .mydomain.com and I know the session is being set properly because if I goto sub.mydomain.com in the browser the session id matches…
user1086377
  • 328
  • 5
  • 16
0
votes
3 answers

Different Session ID in PHP

I have two users in mysql database, when one user is logged in, it gets a session id. But when 1st user logs out & 2nd user logs in it gets the same session id as of the 1st user. I want that even if the browser is not closed, but there are multiple…
user2024006
0
votes
2 answers

New session id after being redirected with Zend Framework 1

I'm having a hard tackling a problem with a Zend Framework 1 application. It's a custom webshop application where from the checkout page the client is being redirected to a payment gateway provider. So it looks like this: When the client chooses a…
Ruben
  • 5,043
  • 2
  • 25
  • 49
0
votes
3 answers

PHP session not renewing

I have a logout script for my web app which is the following:
Mr.Web
  • 6,992
  • 8
  • 51
  • 86
0
votes
1 answer

window.open() clears session

I have several portlets in my application. If I open a url using window.open() method, the session id changes and causes an error in other portlets. If I don't open this url, everything works fine. But once this new window is opened, the session is…
jobinbasani
  • 2,075
  • 6
  • 47
  • 66
0
votes
1 answer

Session ID and Token from PHP to Javascript to PHP (xmlHTTPRequest)

I am currently working on a upload system using Javascript to send the file via xmlhttprequest, wich works just fine. Now i want to store the file information inside a database, together with the information about the uploader. The user has to log…
puelo
  • 5,464
  • 2
  • 34
  • 62
0
votes
1 answer

Unable to get the session id from HTTP cookie in CookieContainer WP8 application

Preface: I'm writing a windows phone 8 application, and one of my modules is responsible for communication over a remote server. I'm using GET and POST methods using HttpWebRequest and HttpWebRequest. I was also surprised to found out, that HTTP…
0
votes
2 answers

Needing guidance on how to redirect a user if not logged in on admin panel

At the moment I have an extremely basic admin login system. I am able to login in through my admin_login.php page which has a script from my login.php page I can update records from the admin_control_panel.php. My main concern is the fact that…
AyeTry
  • 75
  • 3
  • 12
0
votes
2 answers

PHP, MYSQL checking if a user is owner of a page

I am trying to check if a user is the owner of a profile page so that i can display a text box for entering twitter similar posts. The code $id=mysql_query("SELECT id FROM users WHERE`username`='".$_GET['username']."'"); $ultimatum_form…
0
votes
3 answers

Using session ID to validate a user on secure webpages

This is a follow up to a question I posted earlier, but was unclear then. I hope I can be more clear now. I'm using ASP.NET and C# to validate a user after login on all secure pages. I should be able to do this without touching the web.config files…
Nibirue
  • 411
  • 1
  • 15
  • 29
0
votes
2 answers

php Session data saved and stored, but not available to next page

I am really pounding my head on the desk about this: I am saving session data on page1. here is the initial code:
dzogchen
  • 383
  • 3
  • 10
0
votes
1 answer

php what is the advantage of regenerating a session id like in codeigniter sess_time_to_update

Possible Duplicate: Is regenerating the session id after login a good practice? What is the advantage of regenerating a session id like in codeigniter. Codeigniter uses its option sess_time_to_update to set the interval to regenerate session id.
Jayapal Chandran
  • 10,600
  • 14
  • 66
  • 91
0
votes
5 answers

session_id() error

Though I'm not so specific about session_id(), i am using a code in php like this in a.php i'm using this code $_SESSION['sid']=session_id(); when i'm in b.php, i am echoing the session sid and then unsetting it like this.. echo…
Saswat
  • 12,320
  • 16
  • 77
  • 156
0
votes
0 answers

attributes are not being saved in session

I have a webapp and it works exactly fine in my local environment but when i deploy it to other app server there is something going wrong in session part. In one servlet I store session attribute as session.setAttribute("customer", customerObj) In…
jit
  • 452
  • 1
  • 7
  • 26