sessionid

Empty $_SESSION superglobal on AJAX request, but session ID is preserved

大城市里の小女人 提交于 2019-12-24 08:29:12
问题 I'm having problems with $_SESSION superglobal on AJAX request. session_start() function is called before any session coding. Session ID is also the same in the calling code and the AJAX response code (tested by echoing session_id() in both scripts). AJAX PHP file is on the same domain. Everything should work as defined by standards, but when I do print_r($_SESSION) in the called AJAX script file I get Arrray( ) output. I've hit the brick wall... I don't know why is this not working...

SessionId saved in SQL Server is different from the one generated from the asp.net runtime

主宰稳场 提交于 2019-12-24 06:01:11
问题 I have implemented SQL Server session mode for an asp.net application. <sessionState mode="SQLServer" compressionEnabled="true" sqlConnectionString="Data Source=.;User ID=xxxx;Password=yyyyy;Integrated Security=False;" sqlCommandTimeout="240" allowCustomSqlDatabase="true" cookieless="false" /> I created a variable in the Session_Start in the global.asax file: var sessionID = Session.SessionID; I found the following data while debugging the application: ASP.NET generated :

Get session cookie name

南笙酒味 提交于 2019-12-23 13:39:16
问题 Is it possible to get session cookie name in medium trust level? The code below works in full trust, but throws a security exception in medium trust level. string sessionCookieName = ((SessionStateSection)WebConfigurationManager.GetSection("system.web/sessionState")).CookieName; 回答1: You can use HTTP_COOKIE server variable from the Request object, to get the cookie string that was included with the request. string cookieString = Request.ServerVariables["HTTP_COOKIE"] If what you want is to

How to avoid session sharing provided by IE8 programmatically in Java EE application?

早过忘川 提交于 2019-12-23 09:29:39
问题 Microsoft, in an effort to make Internet Explorer 8 "more stable" and “faster”, have changed the underlying architecture of the browser and introduced a function called "Loosely-Coupled IE" (LCIE) which works on session sharing across TAB and new instances. But session sharing may be fatal when some one is trying to do two different things at a time with the same application, e.g. like someone want to book one forward journey ticket and one return ticket at a time, at that time he will book 2

Getting logged in users with sessionRegistry not work when manually authenticate

我的未来我决定 提交于 2019-12-22 12:32:29
问题 I use spring security3 and spring mvc3 to build an web project. There is page called index.jsp, login user name and online user count will be displayed on the top of this screen. There are 2 ways to login the system: from login page, use default configuration post by 'j_spring_security_check' ajax login with manually authentication When I use login page to login into index page, both of count of online information and user name show correctly. But when I use ajax login (manually authenticate)

Session replication in Glassfish Cluster on EC2

别说谁变了你拦得住时间么 提交于 2019-12-22 11:37:30
问题 I've built a cluster on Glassfish administred via SSH, where there are 2 instances. I deployed an application that shows the "Session id". This application has in the web.config: <distributable/> And in the sun-web.xml: <session-config> <cookie-properties> <property name="cookieDomain" value="compute.amazonaws.com"/> </cookie-properties> </session-config> I enabled "Availability" in Edit Application. But when I access the 2 web app versions I see different session ids. Can anyone help me?

Function ASP.NET uses to generate Session ID?

我们两清 提交于 2019-12-21 18:36:30
问题 Does ASP.NET expose the underlying function it uses to generate session IDs? I want to generate a session token for use in a web service, but it will not be put in the Set-Cookie header. If ASP.NET already has a function I can use to generate a session ID this will save me from having to roll my own. 回答1: Reflector is your friend: SessionIDManager.CreateSessionID() internal static string Create(ref RandomNumberGenerator randgen) { if (randgen == null) { randgen = new RNGCryptoServiceProvider(

Regenerate session IDs with Nodejs Connect

痴心易碎 提交于 2019-12-21 12:09:06
问题 I'm using a Node.js server and I'm developing with the Connect framework. I'm trying to regenerate SIDs after a given interval to avoid session fixation. There's a method called req.session.regenerate which, according to the docs, should do just that. « To regenerate the session simply invoke the method, once complete a new SID and Session instance will be initialized at req.session » Example code: req.session.regenerate(function(err){ // will have a new session here }); After calling the

Harm of passing session id as url parameter

久未见 提交于 2019-12-21 05:51:13
问题 So I just noticed that one of the internet banks websites is passing session id as url parameter. ( See image below ) I didn't previously see anywhere that ';' in url, in this case it is after 'private;'. 1) What is the use of this ';'? 2) And why internet bank, which needs to be securest place in the internet is passing session id as url parameter? At first, I thought they are doing it because some of the users disallow use of cookies, but then again, if they allow it, use cookies, if not -

Magento session lost when switching to https from http

删除回忆录丶 提交于 2019-12-19 03:38:06
问题 I've searched high and low for a solution to this, with no luck. My host told me they are too busy to help. Magento 1.4.2 // SSL cert 1- When I add an item to cart, the page reloads and my item is added to cart. [good] 2- Next, I click home, and my items are no longer visible in cart sidebar. [bad] 3- Next, I click "Tops", and my items are still not visible in cart sidebar. [bad] 4- Next , I click "Bottoms" and the items show just fine. In all cases where the cart isn't visible, I can add