Index: /trunk/textrecs.cgi
===================================================================
--- /trunk/textrecs.cgi	(revision 493)
+++ /trunk/textrecs.cgi	(revision 494)
@@ -51,5 +51,5 @@
 
 # Check the session and if we have a zone ID to retrieve.  Call a failure sub if not.
-my $sid = ($webvar{sid} ? $webvar{sid} : undef);
+my $sid = $q->cookie('dnsadmin_session');
 my $session = new CGI::Session("driver:File", $sid, {Directory => $dnsdb->{sessiondir}})
 	or die CGI::Session->errstr();
