Все вопросы: [cookies]

629 вопросов

0
голосов
1ответов
196 просмотров

Would Apple reject an app because of using cookies?

Would Apple reject a native app because it stores cookies send back and forth to the server?

3
голосов
2ответов
11664 просмотров

.NET MVC Write Cookie from ActionFilter

I built an ActionFilter to host a page hit logger on my MVC site and have the need to save some values into cookie. I've used the following code to write the cookie: public class LogRequestAttribute : ActionFilterAttribute, IActionFilter { void IActionFilter.OnActionExecuting(ActionExecutingC...

1
голосов
2ответов
374 просмотров

cookie that works with all folders

I have a cookie that is on every page of my site. It works fine when the address is like this. http://mydomain.com/index.html or whatever. but when I have a page that is in a folder like this http://mydomain.com/folder/page.html instead of using the cookie that I have set for all the other page...

1
голосов
1ответов
73 просмотров

Handling website access changes when using cookies

If I have a site that uses cookies for authorisation, so when the user returns they don't have to login again. If for some reason the site admin cancel this users account what is the best way to check for this. I don't want to have to hit the database every time the user visits a page to make sur...

2
голосов
3ответов
4771 просмотров

Accessing .sqlite db from phpmyadmin? FF cookies

I'm trying to view my firefox cookies db (cookies.sqlite). Since I've never accessed dbs with anything other than phpmyadmin, I'm at a loss as to how to view the content of this sqlite file. There's localhost/sqlitemanager, but I'd rather stick to the phpmyadmin interface that I'm used to. Any i...

1
голосов
2ответов
2399 просмотров

Using Jquery Scroll Follow plugin with Cookie plugin

I'm using the Jquery Scroll Follow plugin to allow a box to follow along as a user scrolls down the website. Scroll Follow allows users to disable or enable the scrolling feature and uses the cookie plugin to remember the users choice across pages. Scroll Follow works great, but the code enabl...

6
голосов
5ответов
19731 просмотров

how to set a cookie in the address bar?

I want to add a cookie so that I can exclude my interaction with my website from google analytics (I don't have access to put files on server as is third party application) Is it possible to set a cookie with javascript by executing code in the address bar of the browser?

3
голосов
2ответов
596 просмотров

Why does sharing PHP sessions between concurrently open pages seem to work in FF, but not IE or Chrome?

EDIT I just realized that I must have had a massive brain fart while writing the abbreviated code sample. See, I'm using smarty. Thus, I'm actually already using Kips's solution, because smarty displays after the session is saved I've been working on implementing a resource manager (for conden...

51
голосов
6ответов
35668 просмотров

Reading cookie expiration date

Is it possible to read cookie expiration date using JavaScript? If yes, how? If not, is there a source I can look at?

3
голосов
3ответов
583 просмотров

Read Cookies From Internet Explorer

Is is possible to read cookies created in Firefox from a html page that was opended in Internet Explorer? Thanks

8
голосов
5ответов
19435 просмотров

Encoding java Cookie value

How should you encode the actual value for a Java Cookie object? I cannot pass characters like '=' or any character outside US-ASCII. /Br joynes

1
голосов
2ответов
1644 просмотров

How to clear cookies using python 2.6.x cookielib

It seems my previous description was not clear, so rewriting it. Using python urllib2, I am automating fileupload task in my webapp. And am using Cookielib to store session information, and also I could able to successfully automate the fileupload task. Problem is, when I change the login crede...

0
голосов
2ответов
105 просмотров

how to keep cookies out of webpage?

I have text fields on a website. When I type things in it, hit the back button, then the forward button, the things I typed in are still there. More specifically, the text boxes start of with grey text. When you type for the first time, the box empties the grey text, then shows what you type in ...

0
голосов
1ответов
87 просмотров

How do i get the latest cookie using js?

How can i get the latest cookie sent from a domain ? eg : cookies 1 - ABC 2 - ABC123 3 - ABC456 These 3 cookies has been sent from a domain, how do i find which one is the latest one? Thanks.

0
голосов
1ответов
2870 просмотров

How to enable cookies when POSTING with URLConnection in iPhone SDK?

I am trying to do a POST towards a site which utilizes secure session with cookies. Ofcourse this won't work with the code I have posted below. It keeps responding with a non-authorized message. Is there any way I can use cookies in my code or at least simulate cookie usage? NSURL *url = [...

0
голосов
1ответов
117 просмотров

never cache settings causing an issue

We are currently having an issue with cache settings on a shared workstation at one of our client sites. Basically, they had set their IE browser on their machine to "never" for when to check for new versions of a site. This causes some of our pages to show another user's data after one user logs...

3
голосов
3ответов
3509 просмотров

Storing multiple values in cookies in Java

I see many solutions for storing multiple values in one cookie in .Net and php but I have not found any good solution for Java. I dont wanna encode/decode the pair-values myself which can be risky.

3
голосов
4ответов
4621 просмотров

Reading web-page cookies from a Firefox extension (XUL)

I'm creating an extension for the Firefox browser. I would like to read a cookie which was set by an HTML page using JavaScript in the XUL file. Is it possible? I tried using document.cookie, but it doesn't work: function readCookie(name) { var ca = document.cookie.split(';'); var nameEQ = ...

6
голосов
3ответов
1911 просмотров

HTML and CSS in URLs causing 404 errors (User Agent = Trident/4.0)

I've been getting some 404s with snippets of code (CSS, HTML and JavaScript) in the URL. As best as I can tell the user is progressing through the site just fine during their session - its an ecommerce site and the affected users are putting stuff in their basket and checking out OK etc. On cer...

2
голосов
2ответов
522 просмотров

Can restful authentication work with Cookies Disabled?

If a user has cookies disabled in their browser can restful authentication and role requirement still work? On our site, with cookies disabled, the system won't let you log in. Any way to fix this? Thanks in advance.

2
голосов
3ответов
1792 просмотров

How to Store Passwords in Databases and Cookies (PHP/MySQL)

Having read this article and many others out there on how to not store passwords in databases and cookies, I'm wondering now how I should do it... What I've come up so far (after reading around a bit) is taking the clear-text user password, padding it with salt till it fills up 512 bits (64 byte...

1
голосов
1ответов
2087 просмотров

Authenticated onto two seperate sites with one login (and using an IFrame). Possible?

Currently building a site in ASP.NET MVC and have to integrate another site within it, in an IFrame. It is the wish of the client to have one login for both systems, so the user logs in in the parent site, and then are automatically authenticated on the IFramed site. Of course, if this were possi...

0
голосов
1ответов
2212 просмотров

Update cookies without refreshing page (Asp.net)

I'm getting a cookie on a page load (from 3rd party) and need to use its attributes on the same context, however it is available only after the page is refreshed (reloaded). Is there a way to programatically refresh/reload the cookies in HttpContext.Current?

2
голосов
4ответов
2872 просмотров

Issues overwriting a cookie

Client has a site at a.url.com. Client creates a cookie with host as ".url.com" and path as "/". Client redirects to us at b.url.com. Client has a coding issue that requires us to delete the cookie (long story). The following code is not adjusting the expiration at all in our test or production...

2
голосов
2ответов
2087 просмотров

Delete all visible cookies raises an exception

I am using selenium with a python client. When doing selenium.delete_all_visible_cookies I get the exception: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: malformed URI sequen...

0
голосов
2ответов
1032 просмотров

Forms Authentication - Storing and Retrieving User Names

Using Forms Authentication, I am storing a cookie for each user if they mark Remember Me during login, using the following piece of code in the Login1_LoggedIn event. if (rememberMe.Checked) FormsAuthentication.SetAuthCookie(Login1.UserName, true); When the user arrives on my page with a cooki...

0
голосов
1ответов
150 просмотров

Does the browser have cookies enabled?

Is there a standard technique for an ASP.NET application to check if a client's browser enables/supports cookies? I'd appreciate any solution - even a less common one, as long as it's elegant enough. 10x!

1
голосов
1ответов
1460 просмотров

What can be set in the FormsAuthenticationTicket?

I am still a bit confused about something about FormsAuthenticationTicket and the actual cookie container. What does DateExpiration in FormsAuthenticationTicket() refer to? Is that when the cookie dies? Is that how long the user can stay logged in without any active actions (i.e. timeout)? &...

4
голосов
2ответов
1935 просмотров

What cookies are sent by the JVM to the server when running a Java applet?

On my web server I have an HTML file that contains an applet tag: <html> <head/> <body> <applet code="Hello.class" width="100" height="100" /> </body> </html> And I have a Java class file named Hello.class in the same directory as the HTML file. B...

1
голосов
1ответов
154 просмотров

Cookies don't set when using PHP 4.4.7, they do however when using PHP 5.2.9 - Any ideas why?

So I have been working on a project for a client on their current web site which has been in existence for quite some time. The version of PHP used is 4.4.7, and I am not in a position to ask them to upgrade. (The system is old and it could break something) This past week I made some changes t...