AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.09.2007, 14:40   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Solutions Monkey: Cookies in X++
Источник: http://blogs.msdn.com/solutions/arch...kies-in-x.aspx
==============
Cookies are often used in web applications to maintain some data on the browser machine and sent back to the server everytime across multiple page visits from the same site/domain untill it expires.
The user can set the browser option to accept cookies or not. So before using cookies, these considerations along with other security and privacy considerations should be carefully thoughout.
EP framework provides way to read and write cookies from X++ code executed by EP. Below is a sample code snippet to read and write cookie in X++
IISRequest r;
;
//Write Cookie with a set expiration date
webSession().response().cookies().itemWriteCookie("CustomerName=mey; expires=Fri, 31-Dec-2010 23:59:59 GMT");
//Read cookie from the Request object
r = new IISRequest();
webSession().writeTxt(r.cookies().itemTxt(("customerName")));



==============
Источник: http://blogs.msdn.com/solutions/arch...kies-in-x.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Solutions Monkey: Microsoft Dynamics AX 2009 Enterprise Portal / Role Centers - Deployment Tips-n-Tricks – 3 Blog bot DAX Blogs 0 27.10.2008 08:05
Solutions Monkey: EP SSL ( https) Setup Blog bot DAX Blogs 0 23.10.2008 12:05
Solutions Monkey: Aggregation in EP Datasets Blog bot DAX Blogs 0 07.10.2008 06:05
Solutions Monkey: Role Center Security Blog bot DAX Blogs 0 28.05.2008 16:05
Solutions Monkey: EP 4.0 Questions Blog bot DAX Blogs 0 28.10.2006 16:40

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 09:19.