Session Variable _authkey_ Is Null On First Request

(Doc ID 1986298.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle WebCenter Sites - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Symptoms

You cannot use satellite:form because it is not valid to generate some "attributes" of the form tag. For instance, there is the "novalidate" attribute that you cannot set with satellite:form tag.

So when trying to set the _authkey_ parameter in the same way the satellite:form tag does.

<form name="MyForm" action="xxxxxx" method="POST" enctype="multipart/form-data">
   <INPUT TYPE='HIDDEN' NAME='_authkey_' VALUE='<%= ics.GetSSVar("_authkey_")%>'>
   <input type="submit" name="submit" value="submit"/>
</form>

The issue is that on the first request (no cookies, no session in appserver) ics.GetSSVar("_authkey_") is always null. On subsequent requests it is OK.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms