Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » how to test ? (cookie) (Oracle 9i)
how to test ? (cookie) [message #417075] Wed, 05 August 2009 23:58 Go to next message
mm_kanish05
Messages: 487
Registered: January 2007
Location: Chennai
Senior Member

Hi,
I created login page if login is sucesss the i create cookie using the below code.

owa_util.mime_header ('text/html',False,'ISO-8859-1');  
owa_cookie.send ('username',p_username);  
owa_util.http_header_close;  


How to test it, whether it is working or not?

i am creating a site using (psp)

kanish
Re: how to test ? (cookie) [message #418900 is a reply to message #417075] Wed, 19 August 2009 02:04 Go to previous message
misragopal
Messages: 125
Registered: June 2005
Location: New Delhi, india
Senior Member

You can use owa_cookie.get function to get cookie value. You can get clue from blow procedure.

CREATE OR REPLACE procedure show
as

vCookVar owa_cookie.cookie;

BEGIN
   owa_util.mime_header('text/html',False);
   owa_cookie.send('UserName0','PassWord Of UserName-0');
   owa_util.http_header_close;		

  vCookVar:= owa_cookie.get('UserName0');
  htp.print('VALUE='||vCookVar.vals(1));  
end;
/

Previous Topic: owa_util.tablePrint is showing timestamp fields as "Not Printable".
Next Topic: Generate XML with additional Nodes.
Goto Forum:
  


Current Time: Tue Dec 06 11:54:52 CST 2016

Total time taken to generate the page: 0.15796 seconds