[plt-scheme] [dfelgar: Web-server question: how to maintain session across a hyperlink]

From: Don Felgar (dfelgar at rainier-infosys.com)
Date: Wed Apr 30 16:32:47 EDT 2003

Come to think of it, I can append key=value arguments to the url
argument passed in to the argument to send/suspend to create
hyperlinks some of the hyperlinks I want to reproduce.  However I'd
also like to add "path" information as well to urls as well.

So is there a procedure for altering send/suspend-style urls to add a
path?  Update-params from web-server-unit.ss may be what I want,
though I notice this is not exported.

----- Forwarded message from dfelgar -----

To: plt-scheme at list.cs.brown.edu
Subject: Web-server question: how to maintain session across a hyperlink

I'm having great success porting a Scheme webapp to web-server.  I'm
amazed at how much code I have been able to throw out.

However I don't see how to maintain a session across a hyperlink.
Send/suspend works for forms, but I need hyperlink navigation as well.
Hardcoded hyperlinks won't work obviously as they wouldn't retain
session information.

The only solution I can think of is, for each hyperlink I need, create
an encapsulate send/suspend call and store that in a table, and have
the hyperlink reference that.  Is there a better way?


----- End forwarded message -----

Posted on the users mailing list.