|
Posted by ironmann on December 18, 2004, 11:16 pm
Please log in for more thread options
I have been struggling with this for a long time and I just can't
figure it out. I thought that you might look at it and see right away
what the problem is. When I do the following, I know the cookie gets
set correctly (because I print it out on the screen)...but when I go to
retrieve it, all I can get are the username and the alias cookies. The
sess_id doesn't get retrieved...but the alias and username do.
$numDigits = 20;
srand(time|$$);
@charList = ('a'..'z','A'..'Z',0..9);
$id = "";
for($x=0; $x<$numDigits; $x++) { $id .= $charList[int(rand(64))]; }
$sess_id = $id .= time();
$sess_id_cookie = cookie(-name => 'sess_id', -value
=>$sess_id, -expires=>);
$username_cookie = cookie(-name => 'username', -value
=>$username, -expires=>);
$alias_cookie = cookie(-name => 'alias', -value
=>$alias, -expires=>);
print header (-cookie => [$sess_id_cookie, $username_cookie,
$alias_cookie]);
my $sess_username_cookie = cookie('username');
my $sess_id_cookie = cookie('sess_id');
my $alias = cookie('alias');
If I do the following and set just one cookie with all three things
within it, I can not reitieve any of the information from the
cookie...but I know that the cookie is being set with the information
inside it. I create the cookie in one script and try to retrieve it in
another. Do you have any ideas at all? The first way above is the
most troubling because I set 3 cookies and two of them get retrieved
and 1 doesn't.
$credentials_cookie = cookie(-name => 'credentials',
-value=>{
sess_id=>$sess_id,
username=>$username,
alias=>$alias
},
-expires=>,
-path =>'/'
);
print header (-cookie => $credentials_cookie);
%credentials_cookies = cookie('credentials');
$alias = $credentials_cookies;
$sess_id = $credentials_cookies;
$username = $credentials_cookies;
|
|
Posted by Terrence Brannon on December 19, 2004, 5:31 pm
Please log in for more thread options
ironmann@conwaycorp.net writes:
> I have been struggling with this for a long time and I just can't
> figure it out. I thought that you might look at it and see right away
> what the problem is. When I do the following, I know the cookie gets
> set correctly (because I print it out on the screen)...
did you use your browser and look to see what cookies it actually has?
> but when I go to retrieve it, all I can get are the username and the
> alias cookies. The sess_id doesn't get retrieved...but the alias
> and username do.
I dont know a lot about CGI's cookie routines (we use Apache::Cookie
at work, it works fine) , but I have a suggestion about reducing the
number of lines you type to generate the session id.
use strict; # are you using strict?
use Digest::SHA1;
my $session_id = Digest::SHA1::sha1_hex( time, rand, $$ ) ;
# there. wasn't that easy? :)
|
|
Posted by Terrence Brannon on December 28, 2004, 5:14 am
Please log in for more thread options flesh; human or pork
3 lb. ground beef
1 cup finely chopped onions
7 - 12 cloves garlic
1 cup seasoned bread crumbs
˝ cup milk, 2 eggs
Oregano
basil
salt
pepper
Italian seasoning, etc.
Tomato gravy (see index)
Fresh or at least freshly cooked spaghetti or other pasta
Mix the ground meats together in a large bowl,
then mix each of the other ingredients.
Make balls about the size of a baby?s fist
(there should be one lying around for reference).
Bake at 400°for about 25 minutes -
or you could fry them in olive oil.
Place the meatballs in the tomato gravy, and simmer for several hours.
Serve on spaghetti.
Accompany with green salad, garlic bread and red wine.
Newborn Parmesan
This classic Sicilian cuisine can easily be turned into Eggplant Parmesan
If you are planning a vegetarian meal. Or you could just as well use veal -
after all, you have to be careful - Sicilians are touchy about their young
family members...
6 newborn or veal cutlets
Tomato gravy (see index)
4 cups mozzarella, 1cup parmesan, 1cup romano
Seasoned bread crumbs mixed with
parmesan
romano
salt
pepper
oregano
garlic powder
chopped parsley
Flour
eggwash (eggs and milk)
Peanut oil for frying.
Pound the cutlets.
Dredge in flour,
|
|
Posted by ironmann on December 28, 2004, 6:30 am
Please log in for more thread options for several hours.
Place seasoned flour in a paper or plastic shopping bag,
drop pieces in a few a time, shake to coat thoroughly,
then deep fry in hot oil (350°) for about 15 minutes.
Drain and place on paper towels.
Miscarriage with Mustard Greens
Why waste it? Otherwise, and in general, use ham or salt pork to season greens.
The technique of smothering greens can be used with many vegetables;
green beans work especially well. Meat is not necessary every day, don?t
be afraid to alter any dish to vegetarian tastes.
1 premature baby, born dead
Large bunch of mustard greens
2 white onions, 1 cup chopped celery
Vegetable oil (or hog fat)
Salt, pepper, garlic, etc.
Lightly brown onions, celery, garlic and meat in large heavy pot.
Add a little water and the greens (which should be thoroughly cleaned and
washed).
Smother slowly for at least 2 hours, adding small amounts of water
when it starts to stick.
Stir frequently.
When ready - serve with rice, grilled smoked sausage, green salad, and iced tea.
Coffee and apple pie then brandy.
Maternity Ward Pot Luck Dinner
If you can?t get anything fresh from the hospital, nursery, or morgue;
you can at least get rid of all the leftovers in your refrigerator.
1 - 2 lbs. cubed meat (human flesh, chicken, turkey, beef...)
1 -2 lbs. coarsely chopped vegetables
(carrots, potatoes, turnips, cauliflower, cabbage...)
Bell pepper
onions
garlic
ginger
salt pepper, etc.
Olive oil
butter
Brown the meat and some chopped onions, peppers, and garilic in olive oil,
place in baking dish, layer with vegetables seasoning and butter.
Bake at 325° for 30 - 45 minutes.
Serve with hot dinner rolls, fruit salad and spar
|
| Similar Threads | Posted | | CGI & LWP::UserAgent - forwarding cookies - how? | January 15, 2007, 3:25 pm |
| Storing multiple cookies | June 9, 2007, 11:58 am |
| Coding question wrt Cookies Module | February 16, 2005, 12:56 am |
| Patent::Retrieve Request for Comments | February 12, 2005, 8:52 pm |
| Net::telnet - need to retrieve the exit status | August 22, 2005, 6:00 pm |
| Module to retrieve general TTF font info | May 31, 2005, 5:16 am |
|