session-cookies

Http session persistence on tcp disconnect

回眸只為那壹抹淺笑 提交于 2019-12-24 16:02:55
问题 Concerning an HTTP session: It is either implemented via cookies or URL rewriting. Since the HTTP 1.1 uses persistent connections, I assume that a session is invalidated when a TCP connection disconnects. Or not? I am confused on this since otherwise the behavior using cookies vs URL-rewriting would not be the same,right?I mean the browser does not store the values part of the URL-rewriting to disk, correct? Additionally if it is not, how could we programmatically invalidate it on the server

Cookie not working with Login System CodeIgniter

会有一股神秘感。 提交于 2019-12-24 15:48:32
问题 I have implemented a basic login system using CodeIgniter. I am using the sessions library to control access to a members only section. I can log in and view this area no problem. However when I delete my cookies and refresh the members only section page I can still see the content. I am not displaying a login message to the user. I don't know why this is happening. Any ideas? This is my Site.php controller class Site extends CI_Controller{ function _construct(){ parent::_construct(); $this-

Session Cookie vs Persistent Cookie

冷暖自知 提交于 2019-12-24 15:32:20
问题 I understand the normal application of a persistent cookie vs a session cookie. But if you can specify the expiration time of a session cookie to behave like a persistent cookie and vice-versa. Is there any benefit to using session cookies besides them being obfuscated from the user and the session is stored on the server? session_set_cookie_params() function allows you to set a specific expiration time for a session. You can set the time in a persistent cookie in the setcookie() function. I

Protect against 3rd party callers of document.execCommand(“ClearAuthenticationCache”)? Clears our session cookies

筅森魡賤 提交于 2019-12-24 11:34:39
问题 We have a J2EE application (running on -cough- IE only) that uses JSESSIONID to manage session state between client and server. Some of our customers use a third-party web application (https://mdoffice.sentara.com/) in which the client Javascript onload method calls: document.execCommand("ClearAuthenticationCache"); This smashes our JSESSIONID cookie in the browser and hence causes the the app server to see subsequent requests from our IE client window as an invalid or timed out session and

checking a cookie exists Login Logoff using jquery / js

試著忘記壹切 提交于 2019-12-24 11:17:51
问题 I have a DNN login/logoff control which isnt working properly. I want to therefore make my own using JS/JQUERY. When the user is logged in the HTML on the page looks like this: <a href="javascript:__doPostBack('dnn$dnnLOGIN$cmdLogin','')" class="SkinObject" id="dnn_dnnLOGIN_cmdLogin">Logout</a> and when they are 'logged out' it looks like this: <a href="javascript:__doPostBack('dnn$dnnLOGIN$cmdLogin','')" class="SkinObject" id="dnn_dnnLOGIN_cmdLogin">Login</a> I would like to check if the

JavaScript Cookie absolutely refuses to be deleted

大憨熊 提交于 2019-12-24 10:53:58
问题 This is related to my other question, i'm asking a new question as i've narrowed down the problem and the original question was getting rather convoluted. In a nutshell, i have a cookie that refuses to be deleted! My server sets the cookie " session=abc; domain=example.com; path=/; " I want to edit this cookie client-side, so lets say i want to change abc to xyz then i run the following code document.cookie = "session=xyz; domain=example.com; path=/;" Now, when i inspect the cookies i

WebBrowser control in web server not returning Cookie from Website

杀马特。学长 韩版系。学妹 提交于 2019-12-24 10:11:52
问题 I am attempting to go to a HTTPS site from a WebBrowser Control in a Web Application, to get some basic information from the site (the site does not have a web service or any other API at this point) When I do this from IIS Express I am able to connect login and navigate to other pages just as I do when directly connecting from the web browser on that system everything works fine. From most Development systems i.e. Windows 10 or Windows Server 2016 I can publish the web application, connect

Browser-upgrade-page redirect vs. privacy mode

你。 提交于 2019-12-24 09:52:43
问题 We are doing feature detection on a site I'm building, but the client insists users with older browsers be shown an upgrade page ("sorry, your browser is outdated, please visit XYZ site to download a newer version") once before they can use the site. After they've seen the upgrade page, the site will not show it again to that user. This will be a temporary redirect if the user agent is an old browser. The redirect will only be issued if a certain cookie is not on the user's system (

How to add headers on a 302 redirect in asp.net mvc

怎甘沉沦 提交于 2019-12-24 04:28:10
问题 Basically I'm writing some code which does an internal webclient request, gets all the headers and then I want to add those headers to a Redirect() call via a controller. Is there any way to do that? 回答1: Unfortunately it's not possible for security reasons as specified above. 来源: https://stackoverflow.com/questions/16003628/how-to-add-headers-on-a-302-redirect-in-asp-net-mvc

PHP & cURL proxy - how to make multi-user cookie jar?

倖福魔咒の 提交于 2019-12-24 04:05:18
问题 I'm developing an application that does a remote login, amongst other things, via cURL. The remote site gives out a session cookie, which I can store in my cookie jar. I want each user to my site to have a unique session on the remote site. My application works fine with just one user (me), but I'm not sure how to make it multiuser. My first thought is to set a session variable for my application users, then use this variable as the name of the cookie jar, but this seems ugly. Is there any