fix cookie -- not working
This commit is contained in:
@@ -52,6 +52,27 @@ templ ProductPage(data viewmodel.ProductPageData, cssPath string, jsPath string)
|
||||
</form>
|
||||
</aside>
|
||||
</section>
|
||||
|
||||
if data.Session != nil {
|
||||
<section class="rounded-3xl border border-stone-800 bg-stone-950/80 p-8">
|
||||
<p class="text-xs uppercase tracking-[0.28em] text-stone-500">Go Cookie Debug</p>
|
||||
<div class="mt-6 grid gap-6 lg:grid-cols-2">
|
||||
<div>
|
||||
<p class="text-sm font-semibold text-stone-200">Raw Cookie</p>
|
||||
<pre class="mt-3 overflow-x-auto rounded-2xl bg-black/30 p-4 text-xs leading-6 text-stone-300">{ data.Session.RawCookie }</pre>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-sm font-semibold text-stone-200">Decoded Values</p>
|
||||
<pre class="mt-3 overflow-x-auto rounded-2xl bg-black/30 p-4 text-xs leading-6 text-stone-300">
|
||||
for _, line := range sessionCookieLines(data.Session) {
|
||||
{ line }
|
||||
{"\n"}
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
</div>
|
||||
</main>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user