Session question(s)
I have session management enabled on my website because if I start getting a lot of comments on my blog posts and photos, I'll probably build in logins/accounts/etc so I don't have to approve every post (my posts are moderated because any CAPTCHA that stops them stops the humans first).
I have the following in my Application.cfc file:
<cfscript>
this.name = "cwcms";
this.sessionManagement = "Yes";
this.sessionTimeout = CreateTimeSpan(1,0,0,0);
this.setClientCookies = "No";
this.loginstorage = "session";
</cfscript>
I'm sure some of that will have to change if I implement accounts/login, but my question is this:
When I load any page on my website, I see something like this on the end of the URL:
http://mydomain.com/gallery/#.UQnJyZFDvx8
I'm assuming that's the session ID, correct? I assume this because if I remove the above code from my Application.cfc file, that string vanishes.
The question is, could this be interfering with the <cffileupload> tag? If I remove that code, my <cffileupload> box vanishes, but even with it, any file I upload gives a 401 error (but only on my hosted site (CF9) and not locally (CF10)).
I'm using this for my <cffileupload>:
<cfset session.storage = replace(createUUID(), "-","_","all")>
<form name="uploads" method="post" action="manageuploads.cfm">
<p><cffileupload
width="640"
extensionfilter="jpg,jpeg,png,JPG"
url="photoprocess.cfm?#urlEncodedFormat(session.urltoken)#"
name="photos"
bgcolor="808080"
wmode="transparent"
maxfileselect="25"
/></p>
<p><input type="submit" name="done" value="Next" /></p>
</form>
Should I be pulling a different value for that session.storage variable?
