Posts Tagged ‘sessions’

Cookies vs Sessions

Tuesday, July 29th, 2008

The main difference between cookies and sessions is that cookies are stored in the user’s browser, and sessions are not. This difference determines what each is best used for.

A cookie can keep information in the user’s browser until deleted. If a person has a login and password, this can be set as a cookie in their browser so they do not have to re-login to your website every time they visit. You can store almost anything in a browser cookie. The trouble is that a user can block cookies or delete them at any time. If, for example, your website’s shopping cart utilized cookies, and a person had their browser set to block them, then they could not shop at your trouble .

Sessions are not reliant on the user allowing a cookie. They work instead like a token allowing access and passing information while the user has their browser open. The problem with sessions is that when you close your browser you also lose the session. So, if you had a site requiring a login, this couldn’t be saved as a session like it could as a cookie, and the user would be forced to re-login every time they visit.

You can of course get the best of both worlds! Once you know what each does, you can use a combination of cookies and sessions to make your site work exactly the way you want it to.

Pros / Cons on Google’s Desktop Search Engine

Saturday, June 21st, 2008

It’s been a month or so since Google’s Desktop Search Application was released. My initial reaction when the software was launched was nervousness. We live in a time of daily security breaches and while I trust Google for the most part I am reluctant to install software that indexes too much as far as I’m concerned. Google’s application indexes data files, including word processing files, spreadsheets, presentations, e-mail messages, cached Web pages and chat sessions. What if it searches your cache and finds bank summaries or personal messages? What if it’s a shared machine and it accidentally shows you someone else’s personal information? I understand that Google found a capability that was missing in Microsoft’s OS and decided to fix it, and for that I applaud their efforts. Unfortunately at this time I’m not willing to take the security risks of installing their application.

If Google can work on this application and fix some of the security breaches I would be happy to install this application. Does it really need to index a computers cache, I personally don’t think so. I think this feature should be removed, and the same holds true for searching other machine user accounts.

If anyone has any additional information please let us in on it!