Gossamer Forum
Home : Products : Others : Gossamer Community :

cookies and the future

Quote Reply
cookies and the future
I have been hearing on the rumour mill that cookies may be phased out of future browsers for security & privacy reasons. Is this true?

Assuming cookies were suddenly banned -- how would this effect Gossamer Community?

It seems the only way to verify that a user is logged in is via cookies. Am I wrong about this? Or is there a way to detect if a user is logged in without looking at session/gcomm user cookies?

Just curious and thinking ahead.

Thanks,
Mike
Quote Reply
Re: [Swaylock] cookies and the future In reply to
Does no one really have nothing to say about this? Unsure
Quote Reply
Re: [Swaylock] cookies and the future In reply to
I'm confused as to what is meant to replace them? Cookies are a great way to store information locally; and access it through a given site. I don't see how anything could be better than that?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] cookies and the future In reply to
Andy,

I totally agree with you! Perhaps it was just a dumb rumour.

Anyway, let's assume cookies will be sticking around. I'm still wondering if there is any other way with GComm besides cookies to detect if a user is logged in?

For example, perhaps you've seen this code Alex gave us:

Code:

#!/usr/bin/perl

use GT::CGI;
use Community qw/
comm_init
comm_config
comm_auth
comm_login_url
/;

comm_init('/path/to/community/private');
my $in = new GT::CGI;
my $user = comm_auth( session => $in->cookie('Community_Session') );
if (! $user) {
print $in->redirect( url => comm_login_url() );
}
else {
my $page = $in->param('page');
($page =~ /^\w+\.\w+$/) or ($page = 'index.html');
print $in->header;
open (PAGE, "< $page") or die "open $page ($!)";
print <PAGE>;
close PAGE;
}


This code still requires cookies. Is there any other way to detect a logged in user without cookies?

Just curious.

Thanks,
Mike
Quote Reply
Re: [Swaylock] cookies and the future In reply to
Usually there are only 2 ways to track a user:
1) using cookies (storing session id)
2) passing the session id through each link and form

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [Swaylock] cookies and the future In reply to
I haven't used Gossamer Community, but does it have a table that stores session ID's like their other products?

If so, you can see if a particular user is logged in by checking for the appropriate entry in that table.
Quote Reply
Re: [Gmail] cookies and the future In reply to
Yes, there is a session table.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...