I spent some time looking at cookie paths and domains. This post
<http://erik.io/blog/2014/03/04/definitive-guide-to-cookie-domains/> was
particularly interesting. To test I set the host file on the client machine
and the IIS server to '<ip address> web.domain.com'. Then in my Mojo::Lite
app I set these settings:
app->secrets(['SessionTest']);
app->sessions->cookie_domain('.domain.com');
app->sessions->cookie_name('sessiontest');
I'm accessing the site from 'http://web.domain.com/sessiontest' and nothing
has changed. I can still get there but there are no cookies in sight. I
tried setting the cookie_domain to 'domain.com', '.domain.com', and
'web.domain.com'. All returned the same no cookie result.
Any particular direction I should look at next?
On Tuesday, July 18, 2017 at 10:34:35 PM UTC-4, Charlie Brady wrote:
>
>
> On Tue, 18 Jul 2017, Brandon Woodson wrote:
>
> > So to further help anyone interested in helping me solve this problem. I
> > put together a small Mojo::Lite app to help me troubleshoot. You can
> check
> > it out on Github <https://github.com/BWoodson/MojoSession>.
>
> You'll need to also provide information about the IIS configuration.
>
> My guess is that browsers are not returning the cookies to the application
> (when the application is behind IIS) because of mismatched hostnames or
> cookie path.
>
> Standard browser development tools should show you any cookies being set
> or returned in requests.
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.