From: SourceForge.net <no...@so...> - 2005-09-06 13:33:04
|
Feature Requests item #1282007, was opened at 2005-09-05 05:36 Message generated for change (Comment added) made by warp9pnt9 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355757&aid=1282007&group_id=5757 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: None >Group: None Status: Open Resolution: None Priority: 5 Submitted By: mosh (mosh666) Assigned to: Nobody/Anonymous (nobody) Summary: setCookie() with more parameters Initial Comment: Wouldn't it be possible to add some more features to the setCookie() function in /src/util/cookie.js? in my apps i'm using a function like this: this.setCookie = function(cookie_name, cookie_value, cookie_lifetime, cookie_path, cookie_domain, is_secure) { if (!cookie_name) { return false; } document.cookie = escape(cookie_name) + '=' + escape(cookie_value) + (cookie_lifetime ? ';expires=' + (new Date((new Date()).getTime() + (1000 * cookie_lifetime))).toGMTString() : '' ) + (cookie_path ? ';cookie_path=' + cookie_path : '') + (cookie_domain ? ';cookie_domain=' + cookie_domain : '') + (is_secure ? ';secure' : ''); if (cookie_lifetime < 0) { if (typeof this.getCookie(cookie_name) == 'string') { return false; } return true; } if (typeof this.getCookie(cookie_name) == 'string') { return true; } return false; } ---------------------------------------------------------------------- >Comment By: L W (warp9pnt9) Date: 2005-09-06 09:33 Message: Logged In: YES user_id=706287 It's a feature request. Sorry, I thought it was submitted as a Feature Request. Well, the "Group" was Feature Request but the "Data Type" field was set to Bugs. I've changed the type. Please use Bugs for something broken, and Feature Requests for something new. Don't forget to double check all those boxes and such. :) ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-09-06 09:19 Message: Logged In: YES user_id=184788 This is _not_ a bug. Please use the BUG tracker to report BUGS. Thank you. <!-- CLOSE ME --> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355757&aid=1282007&group_id=5757 |