On 2004-09-10, William McKee <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 09, 2004 at 11:17:27PM +0000, Mark Stosberg wrote:
>> >> $self->mode_param('rm', path_info => 1);
>> >
>> > If you do it that way, then how about taking the value for path_info as
>> > the path field to use?
>>
>> So, "path_info => 2" would use the second part of PATH_INFO? works for
>> me.
>
> I've just started to use PATH_INFO so have what may be a dumb
> question--how do you know what part is what? Are you splitting on the
> directory separator?
Let's task an example:
/cgi-bin/instance.cgi/edit_form?breed_id=2
That's pretty typical looking for one of my apps. I'm splitting on "/".
Heck, I think it has to start with a "/", otherwise it wouldn't be
"PATH_INFO", it would just be some junk.
I really never use path_info for anything else.
However, someone suggested also including a session_id in path_info, so
that might look like this:
/cgi-bin/instance.cgi/Cuwruf2R4wCg/edit_form?breed_id=2
That's the case where you would set "path_info => 2".
I doubt I would use this feature myself-- I don't mind using cookies.
Passing a session_id around manually is a real PITA. If it doesn't go through
every link and every form, you have a "leak" and lose the session.
Mark
--
http://mark.stosberg.com/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]