sessionid

PHP: session isnt saving before header redirect

Hi guys, I have read through the php manual for this problem and it seems quite a common issue but i have yet to find a solution. I am saving sessions in a database. My code is as follows: // session $_SESSION['userID'] = $user->id; header('Location: /subdirectory/index.php'); Then at the top of index.php after the session_...

Where to find a unique session ID at design time in .Net WinForms.

I've created a custom clipboard because it's not possible to make my whole class map serializable - which is a requirement for the windows clipboard. However, I need to distinguish between users who are using my clipboard through a unique id. Basically, I want to be able identify a person who is sat at one PC with one or more copies of ...

Session hash does size matter?

Does size matter when choosing the right algorithm to use for a session hash. I recently read this article and it suggested using whirlpool to create a hash for session id. Whirlpool generates a 128 character hash string, is this too large? The plan is to store the session hash in a db. Is there much of a difference between maybe using...

How to maintain the same session id across multiple web applications in ASP.NET

I have two identical applications setup on IIS on different virtual directories (I have done some workaround to ensure that they both have the same application name). Is there a way to share session id across two asp.net web applications? Since I'm storing the session in StateServer, they should both be getting the same session data, h...

Prevent multiple user logging into the same domain using the same browser

So its a ASP.NET problem where two users using the same machine, same browser. User 1 logs in the domain. User 1 changes some data without saving it. User 2 logs in the domain in a separate tab. User 1 switches back to his tab and saves the data. User 1 actually saved the data into User 2!! This is caused by the following mechanism: ...

Is there something like session id or cookie in flash?

How can I distinguish different users with actionscript, or is that possible? ...

Login systems: Why are sessions needed?

I was creating a login system with PHP and I wondered: Why are sessions needed? If I store a cookie with the userid and the sessionid doesn't it pose the exact same security risks to storing a cookie with userid and password hash (given that the password hash is strong enough)? Yeah, someone could potentially steal the cookie, but isn't...

Setting session_id unreliable when using flash to send data

I'm using PHP version 5.3.2 on both my local development server and remote web server. I'm trying to use uploadify to upload several files to the server. In the receiving script, I would like to use data stored in the session, however because uploadify sends files to the script using flash it doesn't send the session cookie. The workar...

Pass and restore a session id in zend framework

Hi, First, yes i know this is a big security NONO. But the scenario is this; In the checkout of a webshop i use a payment-gateway, which can proxy my checkout form through their SSL. (following url's is just the theory, other urls apply for the application) The way it works, website redirects user to their https://gateway.org/secure-...

How assert logged user session ID by user name?

Using a process identifier, I can get the user identifier. Indeed, if the process is executed in the user environment, I can get the user session id... But how can I derive a Windows session ID by only user name? (Of course, if the user is not logged, no session id can be derived). My situation is the following: I have a service (sy...

How do I read the value of PHP sess_ files?

Hi, At localhost (Debian Sid machine), PHP creates session files in /var/lib/php5. When I open sess_cd2ct9hud284gn01os13nk5mi7, for example, i can see something like that: Qms6wztHQ9u79B7jjiihLX0cKc_fXgwo0NeVE34jFhdE__1JDOliUDteHQVXgMAjcGZgJ1EkBft0IUsqBdWrck7s0Vjghsm3vk681u_GV8KRK-ExrAEbvbgXfl51Z83tyh5h2JtRy0qLZmhqwLtUFykm1XbdBBxx5xJpNp...

ASP.NET SessionID type

Hi, I was wondering if anyone knew what was the format of a ASP.NET SessionID? It's not a GUID or base64, what is its type? Also does it vary from version to version of the .NET framework? thanks ...

PHP session_id() not accepting existing session id

I'm having trouble forcing sessions to restart in PHP. Here's the problem: I can get my session id with session_id(), copy it, and add to the very top of my script: session_id('the_session_id'); session_start(); And when I open a new browser, the session from the other browser is not carried over. What settings can I check? ...

DBMS_SESSION.set_client_identifier equivalent in SQL Server

Hi, I am new to SQL Server and I am more familiar with ORACLE database. I'd like to know if there's a way to set client identifier context like in Oracle by using DBMS_SESSION.set_client_identifier and grab the value using a function. I am trying to track data changes including who/which username made the changes. My plan to create Tri...

Get XMPP SID and RID from BOSH in PHP?

How do I extract the SID and RID values used in the BOSH transport protocol for XMPP? Specifically, I'm using xmpphp. ...

SessionID is still the same after Session.Abandon call

Hi, I'm writing some logging code that is based on SessionID... However, when I log out (calling Session.Abandon), and log in once again, SessionID is still the same. Basically every browser on my PC has it's own session id "attached", and it won't change for some reason :/ Any ideas what is going on? My Session config looks like thi...

Hidden session Id in MVC Master Page

I have an MVC application, and I need to create and store a unique session Id for each application instance. In standard ASP.NET this is easy, I would have simply added a hidden field in the master page and stored a Guid there on the first Page_Load. However, there is not code behind in MVC, and I also believe that you can't implement a...

Could we use session to create a global variable for all client?

I saw this example in php manual page http://www.php.net/manual/en/session.examples.php The example will create a global session for all client. Can I use this example to create some global application for all client, instead of save it to DB or local file. What're the pros and cons of this method? Thanks for any help. ...