Version: 4.3.1 Reporter: Robin Sowell —
If the frontend is set to require sessions, then when you submit a comment, it loses the session id in the url, but ONLY if the return parameter is specified.
Here is the sum total of my test template:
{if logged_in}logged in!{/if}
{if logged_out}
{exp:member:login_form return="home/comment"}
<label>Username</label>
<input type="text" name="username" value="" maxlength="32" size="25">
<label>Password</label>
<input type="password" name="password" value="" maxlength="32" size="25">
{if auto_login}
<input type="checkbox" name="auto_login" value="1"> Auto-login on future visits
{/if}
<input type="checkbox" name="anon" value="1" checked="checked"> Show my name in the online users list
<input type="submit" name="submit" value="Submit"></p>
<a href="http://{path=member/forgot_password}">Forgot your password</a>
{/exp:member:login_form}
!{/if}
<hr >
{exp:channel:entries channel="blog"
limit="5"
}
<h1>{title} - {entry_id}</h1>
{/exp:channel:entries}
Comments
{exp:comment:form return="home/comment/success"}
<label for="comment">Comment:</label>
<textarea name="comment" cols="70" rows="10">{comment}</textarea><br >
{if captcha}
<label for="captcha">Please enter the word you see in the image below:</label>
<input type="text" name="captcha" value="{captcha_word}" maxlength="20" /></p>
{/if}
<input type="submit" name="submit" value="Submit" />
{/exp:comment:form}
Without the return parameter in there, after I submit, I go to http://localhost/ee4/index.php/S=29f671051a30a0298c8919103ebce79458f37821/home/comment/30 and stay logged in. With the return, I go to http://localhost/ee4/index.php/home/comment/success.
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```