[Phplib-users] just a development thought
Brought to you by:
nhruby,
richardarcher
|
From: darcy w. c. <da...@el...> - 2001-12-06 18:37:09
|
hi,
while i've been developing my phplib app, i've run into a situation
where it might be useful to create a phplib function. The scenerio is
one in which i'm using header("Location: ...") to redirect to another
page. What i have discover (which of course may be obvious to many) is
that in order for session variables to take, the page_close function
needs to be called. What i'm wondering about is whether it might be a
nice idea to create a kind of phplib_redirect function. One in which
page_close is called and then header("Location: ..."). i think this
might be nice for novice users, who may not necessarily realize the
importance of closing the page before redirecting. i myself found it a
little confusing to have two page_close() in the document, until i
understood the problem better. Anyway, it's just a thought. i'm not
sure whether anyone else thinks this is a good idea or where in the
phplib it should go.
--
~darcy w. christ
Elegant Communications Inc.
416.362.9772 x222 | 416.362.8324 fax
|