session-cookies

Why Google Chrome does not delete session cookie when restart after crash?

こ雲淡風輕ζ 提交于 2019-12-25 05:31:31
问题 My web page set a session cookie when the user is connected. If i kill the chrome process on windows, and then i restart the browser, my session cookie is here ! Why ? Is there a way to prevent this behaviour ? 回答1: This is a feature, not a bug. Crashes usually are not intentional, and it would be a huge inconvenience to the user to have to log into everything all over again. Crashing is not the same as exiting. If you want to restart the browser, quit it the normal way, not by killing it. 来源

Why Google Chrome does not delete session cookie when restart after crash?

梦想与她 提交于 2019-12-25 05:31:09
问题 My web page set a session cookie when the user is connected. If i kill the chrome process on windows, and then i restart the browser, my session cookie is here ! Why ? Is there a way to prevent this behaviour ? 回答1: This is a feature, not a bug. Crashes usually are not intentional, and it would be a huge inconvenience to the user to have to log into everything all over again. Crashing is not the same as exiting. If you want to restart the browser, quit it the normal way, not by killing it. 来源

How can I use DotNetNuke's built-in Sessions and Cookies for my own login module?

眉间皱痕 提交于 2019-12-25 03:44:50
问题 Does anyone have an example of how to use DNN's built-in functionality for a custom Login Module which can store the User Login with a Session and Cookie? I don't want to re-invent the wheel. Thanks 回答1: Check out DotNetNuke.Entities.Users.UserController . It has all kinds of methods for user handling. For login it has void UserLogin(int portalId, UserInfo user, string portalName, string ip, bool createPersistentCookie); UserInfo UserLogin(int portalId, string username, string password,

How to get cookie from Webserver and maintain it in iOS app?

怎甘沉沦 提交于 2019-12-25 03:27:10
问题 I would like to to get fetch JSON from http://mycompany.com/page1...http://mycompany.com/page2... On the the webserver side, it requires initial login http://mycompany.com/login, and after that a cookie is maintained for the user. How do I get this behavior with NSURLConnection without having to ask for login every time? Here is the non-working code using NSURLCredential Storage. Do I need to get the cookie from webservice at loging and then send it along with later requests? I struggled with

What is a good way to share a session between two HTTPClients in a Java program?

半城伤御伤魂 提交于 2019-12-25 02:03:30
问题 I have been developing an Android/Java application that opens up two simultaneous Apache HTTP connections. I have been developing a Chat application, and one connection is almost always running (the server was long polling; it would only respond once changes were made), and a second request to send data to the same site, using the same Session (due to being "logged in") was needed. After plenty of searching on StackOverflow, I have not found a good way to do this. How can this be accomplished

php cURL log into jsp website and return HTML

99封情书 提交于 2019-12-25 01:34:12
问题 I'm trying to use cURL to log into a jsp/tomcat website (we'll call it https://unknown.com for privacy reasons) and return the HTML from a page. I've observed the Net panel in firebug and the cookie panel with Firecookie to outline the manual the steps below: Open web root - https://unknown.com Redirected to https://unknown.com/common/frames.jsp -Cookie Created: JSESSIONID Fill out j_username and j_password Post "j_username=user&j_password=pass&submit=logon" to https://unknown.com/common/j

Same webserver, same drupal, same db, single sign on?

前提是你 提交于 2019-12-24 17:24:04
问题 I have a webserver with a drupal 7 installed on. Many primary domains are pointing to this webserver (es domain1.com, domain2.com) and each domain is see the same website. But if i log in into one (domain1.com) when i visit the domain2.com i'm not logged in. I know that is a domain cookie problem, but there is a way to generate the cookie for a list of domain when i register/log in? Hope that someone can help me 回答1: Here my module developed for getting a SSO system working with Drupal and

How do I get a Cookie from a SoapUI response using a Groovy test step?

≯℡__Kan透↙ 提交于 2019-12-24 17:14:49
问题 How do I get a Cookie from a SoapUI response using a Groovy test step? I tried this Groovy code, but it's returning zero cookies (or null). This code is part of a test step that runs immediately after a standard REST request returns a result with the following header: Set-Cookie: JSESSIONID=45C5E845A0C117E22D26DB04A64E5FD8; Path=/tcompany; HttpOnly And the Groovy script I am using that fails to retrieve the Cookie is this: import com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport def

secure session management without cookies

ぃ、小莉子 提交于 2019-12-24 16:53:15
问题 Some months ago, I visited a security workshop and we discussed some securitiy problems when using cookies for session management. I was told, that cookies originally were not designed for handling sessions. But how should it be done then? 回答1: A secure way to do this would be to generate a cryptographically random 128 bit value (that is a random value generated by a CSPRNG), and then pass this as POST data to each page. e.g. <form method="post" action="/globalHandler"> <input type="hidden"

secure session management without cookies

天大地大妈咪最大 提交于 2019-12-24 16:53:02
问题 Some months ago, I visited a security workshop and we discussed some securitiy problems when using cookies for session management. I was told, that cookies originally were not designed for handling sessions. But how should it be done then? 回答1: A secure way to do this would be to generate a cryptographically random 128 bit value (that is a random value generated by a CSPRNG), and then pass this as POST data to each page. e.g. <form method="post" action="/globalHandler"> <input type="hidden"