Cookie headache!

guys, i need solution…i’ve been facing this problem about cookie for about five days now.

i’m developing a web application that uses cookie. i have a adabas database that store username and password. after login in successfully, i will create a cookie by using username:

[color=“blue”]COMPRESS #PARM-WEB.#USERNAME ‘;’ INTO #TEMP1 LEAVING NO

COMPRESS ‘Set-Cookie:’ #TEMP1 ‘expires=Wednesday, 03-Jul-30 10:10:10 GMT’ ##HTTP_NEWLINE_END INTO #TEMP2

PERFORM W3HTTP #TEMP2[/color]

After that, it will proceed to the menu page. i can read the cookie using the following code:

[color=“blue”]PERFORM W3READ-ENVIRONMENT “HTTP_COOKIE” " " #W3VALUE #W3MAX

IF #W3MAX GT 0 THEN
#PARM-WEB.#COOKIE:= #W3VALUE
ELSE
#PARM-WEB.#COOKIE:= " "
END-IF

COMPRESS ‘welcome’#PARM-WEB.#COOKIE ‘!’ into #W3VALUE
PERFORM W3TEXTLINE #W3VALUE

[/color]

so far so good. now my problem starts when i click on a submit button in a form. (fyi, i’m using a dispatcher program just like in the natural documentation). in the resulting page, i can’t read the same cookie again. i need to read the cookie so that i can keep track of user status, and also to delete the cookie by setting the expiry date.

in short, when i use the W3READ-ENVIRONMENT “HTTP_COOKIE” again, it doesn’t return any value. anyone can help? thanks in advance.

ok. guys. i got it solved. no issue now.