search for: cookie_nam

Displaying 2 results from an estimated 2 matches for "cookie_nam".

Did you mean: cookie_name
2006 Jan 15
1
how to provide plugin configuration?
...like the plugin the be configurable but am not sure how to provide this configurability. For example, there''s a setting for the cookie name to use when saving user''s prefered language. I thought of having a class TranslationConfig like this: class TranslationsConfig def self.cookie_name :user_language end end But that implies that if you want to change this setting, you should reopen the class somewhere (I''m not even sure that putting it in environment.rb would work as I thought plugins are loaded last). Also, how can write unit tests for different settings s...
1997 Jan 12
0
Apache 1.1.1 overflow
...REMOTE_NAME)); struct timezone tz = { 0 , 0 }; if ((dot = strchr(rname,''.''))) *dot=''\0''; /* First bit of hostname */ gettimeofday(&tv, &tz); sprintf(new_cookie,"%s%s%d%ld%d; path=/", COOKIE_NAME, rname, (int)getpid(), (long)tv.tv_sec, (int)tv.tv_usec/1000 ); table_set(r->headers_out,"Set-Cookie",new_cookie); return; } Note that although the get_remote_host() function converts all uppercase letters to lowercase letters, there is at least one way in whi...