<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have a catalyst app that uses Catalyst::Plugin::Session,
Session::State::Cookie, Session::State::URI, and Session::Store::DBIC to handle
sessions.&nbsp; I didn&#8217;t write the app but I&#8217;m trying to change it&#8217;s
behavior for new sessions.&nbsp; Currently when a request is made, the app looks for
a cookie with a valid session.&nbsp; If one is NOT found it adds the newly created
session id to the URL, which is visible in the browser.&nbsp; All subsequent
requests made will not have the session id in the URL because the cookie was retrieved.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My question is, how can I not show the session id in the URL
for the first request?&nbsp; I don&#8217;t want to use javascript to redirect once
the cookie is first set because a POST request would screw up some other stuff
we have going on.&nbsp; I would like to send just the headers to set the cookie and
somehow check to see if it was set properly (cookies not blocked) and then just
send the response without the session id in the URL.&nbsp; Looking for any advise on
the best way to do this.&nbsp; I greatly appreciate it.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Ryan Pack</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Programmer</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Gena<i><span style='font-style:italic'>R</span></i>es
Worldwide Reservations</span></font><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>