I want to add my own cookie values to my OpenACS 3.x system as
part of the current cookie system. Particularly, I want to renew
a user's cookie with "bobzval" based on visits to specific pages
by users who are NOT logged on.
I can selectively set a cookie in my file if:
ad_verify_and_get_user_id
comes back with a zero with this:
ad_set_cookie -expires never "bobzval" "$bob1,$bob2"
If it turns out that this is a user already in the system
but logged out, when they DO log in, I'd want the cookie $bob1 to
be replaced with the "bob1" I already have in the db.
It appears that when I use the above code on a page,
there is an unintended and unwanted redirection to the /registration
page.
I'd like some help here...
- Am I on the right track trying to use part of the existing
OpenACS cookie system for my own values?
- How do I prevent redirection?
- How do I retrieve my values without other unintended
consequences?
- Other big picture ideas on solving this problem?
Thank you
-Bob