View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Missing Secure Attribute in an Encrypted Ses

Thread began 8/25/2009 3:16 am by DMCKIB339504 | Last modified 8/26/2009 1:24 pm by DMCKIB339504 | 3260 views | 1 replies

Eric Mittman

I have done some digging on this and here is what I have found. By default the cookies toolkit does not set the secure bit for cookies. However, if you use PHP you can do a quick update to set it this way. Here is an example of the set cookie code for PHP:

setcookie("secure_cookie", "1111", time()+(60*60*24*30), "/", "", 0);

It is this final 0 that makes the cookie secure, you can just update it so this last 0 is set to one like this:

setcookie("secure_cookie", "1111", time()+(60*60*24*30), "/", "", 1);

I did some testing with this and the cookie will not show on an http connection if it has the secure flag set like this.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...