-
7 Jun 2012 12:18 AM #1
Unanswered: Setting cookies
Unanswered: Setting cookies
By using Ext.Cookies class in sencha touch 2.0. I did the following:Ext.util.Cookies.set('ci','some value);Then:Ext.util.Cookiesget('ci')it works fine!But when I enter another parameters like the domain, path, secure e.g:Ext.util.Cookies.set('ci','90f3ln8nBnXDQC666421==',null,'/','www.myapp.com',true);the get function returns null .. Why?
-
9 Jun 2012 6:13 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
- Answers
- 3105
I'm unaware of Ext.util.Cookies in ST2
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
9 Jun 2012 6:17 AM #3
So, How can I set cookies to a web browser using sencha touch 2.0?
-
9 Jun 2012 7:46 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
- Answers
- 3105
Personally I wouldn't. iOS 5's setting for cookies by default means that cookies won't be saved.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote