hey guys
i wonder, how i can remove all certain cookies after (e.g. : 10 minutes) inactivity .
im working on securing a php project and one of the steps are this
i should remove administration cookies and session saved in mysql after certain amount inactivity time in php/mysql project
is there any suggestion !?
...
I have been developing a program that is able to login to AWeber.com, and perform mass imports of data. The script uses the PHP cURL libraries, along with their CookieJar settings to spoof a normal user with a browser.
The script works perfectly, allowing login, and the changing of lists, but when it comes to posting the form data (in t...
I want to carry some cookies value to different subdomains like
blog.mydomain.com , profile.mydomain.com , stats.mydomain.com, etc.
Right now I am using below code to set cookies
setcookie('var_name', 'var_value', null, "/", '.mydomain.com' );
With this code, cookies set on blog.mydomain.com available on mydomain.com but not on oth...
if(isset($_POST['remember'])) {
if(!isset($_COOKIE['tracker_id'])) {
setcookie('tracker_id', $_SESSION['id'], time()+2592000);
setcookie('tracker_username', $_SESSION['username'], time()+2592000);
setcookie('tracker_rsn', $_SESSION['rsn'], time()+2592000);
}
}
I know the code works, because I check to se...
According to the RFC, individual cookies in the "Cookie" HTTP header may be separated by commas as well as by semicolons. However, ASP.NET does not parse the commas case correctly - it does not count comma as a separator, but considers it just part of the value.
For example
If a client sends header Cookie: a=b, c=d, then the ASP.NET app...
I'm trying to login to my website with two different accounts (admin/regular user) to test out some permissions masks - in short its a simple admin tool. Is there any way to run 2 instances of the WebBrowser control with separate cookie containers on two separate windows without having to execute your program twice?
Edit: I'm using C#.
...
For a specialized purpose with Aweber regarding a newsletter subscription, I have a page loading a nested IFRAME inside, and both reside on the same domain. (Many other stackoverflow posts talk about different domains, but this question deals only with the same domain.) I need a cross-platform way (including browsers as old as the dawn o...
im having some difficulty trying to pull out a specific value from a cookie.
im using the cookie plugin found here: http://plugins.jquery.com/project/cookie
var cookieString = "{'zip':'" + $( '#ZipCode' ).val() + "','age':'" + $( '#age' ).val() + "','gender':'" + $( '#gender' ).val() +"}";
$.cookie("rememberMe", ( ($( '#rememberMe' ).at...
I'm trying to set the port on a cookie in ASP.NET (code below), but I'm getting a very unusual error at runtime (below the code). Any thoughts?
target.Cookie = new Cookie
{
Comment = "Test Comment",
CommentUri = new System.Uri("http://www.tempuri.org"),
Discard = false,
Domain = "tempuri.com",
Expired = false,
Ex...
How do I set the cookie path to "/" with the jQuery treeview plugin?
...
I am attempting to check whether cookies are enabled or not using Javascript, cross-browser.
I have got this working fine in Firefox 3 using the following code -
var cookieEnabled=(navigator.cookieEnabled)? true : false;
//if not IE4+ nor NS6+
if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){
document.cookie="te...
in a website where cookies are used for top-level pages (such as example.com/test.php, example.com/whatever.php), is it possible to ban cookies from certain directories such as "/images/", or am I just going to have to use a second domain (static.example.com/images/photo.jpg) ?
does anyone know of a workaround? it's for a CMS where I ma...
I am trying to call ejabberdctl from a PHP file, but it is failing with the following error :
Failed RPC connection to the node ejabberd@localhost: nodedown
The node is running, i have checked this by logging into the server.
When the php script is run this is the error i see in /opt/ejabberd-2.1.2/logs/ejabberd.log shows :
=ERROR R...
Hi all, I'm attempting to save strings inputed by users using JQuery Cookies. I've trawled through google but to no avail, i'd like to make the data i send to cookies structured as there will be many different places users will have to add text to (XML?).
Cheers,
Kay
...
Hi,
The company I work for has four domains and I'm trying to set up the cookies, so one cookie can be generated and tracked across all the domains. From reading various posts on here I thought it was possible.
I've set up a sub domain on one site, to serve a cookie and 1*1 pixel image to all four sites.
But I can't get this working ...
Is there a way to determine Internet Explorer Cookie Settings (that is, whether cookies are accepted or not) through the Windows Registry?
...
EDIT: As far as I know, there is no solution to this problem, making it yet another testament to the fact that one should not use C#'s WebBrowser. We ended up with a warning sign at the start of our program, notifying the user that cookies will be cleared for IE.
The short version of what I'm trying to do is in the title. Here's the lon...
Hi! I have a question about sessions on ruby-on-rails.
We have a several options about session storage such as cookie, active_record_store, etc..
I primarily use the cookie storage, but, there are some client which doesn't support cookie function. In that case, I have to make that client to use the "active_record_store".
My rails versi...
I'm trying to follow this article: http://ryanbigg.com/2010/03/testing-facebook, but I'm stuck. I think the problem is with my session, in that the current_usermethod comes up with nil for session[:facebook_session].
According to the original authlogic, it says to use the active_record_store for sessions:
# config/environment.rb
confi...
I'd like to customize jquery treeview plugin to support cookies on nested ULs. I extracted the piece of code that needs to be customized but I am having problems getting it to work.
function serialize() {
function binary(arg) {
return arg ? 1 : 0;
}
var data = [];
branches.each(function(i, e) {
data[i] =...