ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Session ID in URL when using page_uri

October 26, 2012 2:45pm

Subscribe [1]
  • #1 / Oct 26, 2012 2:45pm

    setheryb

    39 posts

    I’m getting an situation, where when I use page_uri, my url looks like

    “domain.com/S=7cb9e036c88b90705ddfd2bd81520755f7d21266/segment_1/segment_2”

    Any clue what is going on here? If I switch the User Session Type from “Cookies and session ID” to “Cookies only” the problem goes away.

    Appreciate any help I can get.

    My code looks like such

    <ul id="nav">
        {exp:structure_entries parent="/{segment_1}/" depth="2"}
        {if {depth} == 1}{!-- Top Level --}
        <li><a href="http://{page_uri}">{title}</a>{if {children_total} == 0}{!-- No Children - Close Markup --}</li>{/if}
        {if:else}
         {if {sibling_count} == 1} {!-- First Child - Open Markup --}
         <ul>
         {/if}
          <li {if {sibling_count} == {sibling_total}}class="last"{/if}><a href="http://{page_uri}">{title}</a>
         {close_markup}
         {if {total_children} == 0 || {depth} == {restricted_depth}}
          </li>
         {/if}
      {if {last_sibling} && {sibling_count} == {sibling_total}}
      </ul>
     </li>
      {/if}
      {/close_markup} 
     {/if}
        {/exp:structure_entries}
    </ul>


    EE 2.5.2
    Structure 3.1.3 (also using Structure Entries 1.2.8)

     

  • #2 / Oct 29, 2012 12:36pm

    Kevin Smith

    4784 posts

    Hi setheryb,

    That’s actually just what URLs look like when you’re using the Cookies and session ID user session type. The session ID is added to the URI so EE can track sessions that way.

    Does that make sense?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases