Sponsored Content
Full Discussion: Cookie authenticationn
Top Forums Shell Programming and Scripting Cookie authenticationn Post 302917421 by Corona688 on Tuesday 16th of September 2014 02:07:08 PM
Old 09-16-2014
We cannot tell you anything about what authentication the site uses without seeing the site. That kind of web authentication is usually hand-rolled and can be quite complicated, involving cookies, javascript, hidden forms, and more. Any solution to it would be equally hand-rolled.

In the end it often means responding to the site the same way a web browser does -- seeing the main page, accepting cookies from it, submitting all the hidden forms a web browser would, etc, etc.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Xlib: Invalid MIT-MAGIC-COOKIE-1

Anyone: I have a very annoying problem on one of our servers (running Solaris 8). when ever I try to run "xhost +" with the display set at "localhost:0.0" I get the following error: xhost + Xlib: connection to "finappprod:0.0" refused by server Xlib: Invalid... (1 Reply)
Discussion started by: errolg
1 Replies

2. Linux

Cant locate CGI/Cookie.pm

hi frnds i m getting this error whenever i m trying to run otrs in my web browser. http://ipaddr /otrs/index.pl " 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your... (1 Reply)
Discussion started by: naik_mit
1 Replies

3. Shell Programming and Scripting

cannot use the same script to read cookie

Hi all, I am using the following code to read a cookie. when this script is hosted on a unix server(solaris) it runs perfect. but when executed on a windows machine cannot retrieve the cookie. --------------------------------------- # Modules used use CGI; # Create an object of CGI... (0 Replies)
Discussion started by: azmathshaikh
0 Replies

4. Shell Programming and Scripting

problem for CGI create Cookie!!!!

Hi Everyone, I am facing the problem to create the cookie in CGI (bash script). Is it possible can create in cgi? or javascript better? Anyone got the sample to create the cookie in cgi(bash script)? Just the login will do ->> USERNAME and PASSWORD after create how to store into the... (2 Replies)
Discussion started by: ryanW
2 Replies

5. Shell Programming and Scripting

wget - cookie with expiration date

How can I create a cookie with expiration date using either wget or curl? I am able to use cli wget, cli curl, or php curl. I don't see that the cookies I have created contain an expiration date, and I have a problem logging into a forum that looks for the expiration date. (2 Replies)
Discussion started by: locoroco
2 Replies

6. Shell Programming and Scripting

Problem with wget and cookie

Dear people, I got a problem with an scrip using wget to download pdf-files from an website which uses session-cookies. Background: for university its quite nasty to look up weekly which new homeworks, papers etc. are available on the different sites of the universites chairs. So I wanted a... (1 Reply)
Discussion started by: jackomo
1 Replies

7. What is on Your Mind?

Cookie to Turn on and Off Site Animations

Hi, I've been thinking about the issue of mouseovers, hovers, and site animations for thread previews and forum descriptions, etc. What I think I will do is to add a cookie and a switch in the navbar where the user can set site animations to on or off; and then use that cookie to control all... (0 Replies)
Discussion started by: Neo
0 Replies

8. What is on Your Mind?

Changed Forum Cookie Prefix (You May Need to Reload Your Cache)

Today we changed the prefix of our cookie and cleared the session table and all is working fine, at least on my end because I cleared my browser javascript cache. If you experience any strange behavior (you should not), please clear your javascript cache before posting a bug here. Note: I... (0 Replies)
Discussion started by: Neo
0 Replies
Catalyst::Plugin::Session::State::Cookie(3pm)		User Contributed Perl Documentation	     Catalyst::Plugin::Session::State::Cookie(3pm)

NAME
Catalyst::Plugin::Session::State::Cookie - Maintain session IDs using cookies. SYNOPSIS
use Catalyst qw/Session Session::State::Cookie Session::Store::Foo/; DESCRIPTION
In order for Catalyst::Plugin::Session to work the session ID needs to be stored on the client, and the session data needs to be stored on the server. This plugin stores the session ID on the client using the cookie mechanism. METHODS
make_session_cookie Returns a hash reference with the default values for new cookies. update_session_cookie $hash_ref Sets the cookie based on "cookie_name" in the response object. calc_expiry calculate_session_cookie_expires cookie_is_rejecting delete_session_id extend_session_id get_session_cookie get_session_id set_session_id EXTENDED METHODS
prepare_cookies Will restore if an appropriate cookie is found. finalize_cookies Will set a cookie called "session" if it doesn't exist or if its value is not the current session id. setup_session Will set the "cookie_name" parameter to its default value if it isn't set. CONFIGURATION
cookie_name The name of the cookie to store (defaults to "Catalyst::Utils::apprefix($c) . '_session'"). cookie_domain The name of the domain to store in the cookie (defaults to current host) cookie_expires Number of seconds from now you want to elapse before cookie will expire. Set to 0 to create a session cookie, ie one which will die when the user's browser is shut down. cookie_secure If this attribute set to 0 the cookie will not have the secure flag. If this attribute set to 1 (or true for backward compatibility) - the cookie send by the server to the client will got the secure flag that tells the browser to send this cookies back to the server only via HTTPS. If this attribute set to 2 then the cookie will got the secure flag only if the request that caused cookie generation was sent over https (this option is not good if you are mixing https and http in you application). Default vaule is 0. cookie_httponly If this attribute set to 0, the cookie will not have HTTPOnly flag. If this attribute set to 1, the cookie will got HTTPOnly flag that should prevent client side Javascript accessing the cookie value - this makes some sort of session hijacking attacks significantly harder. Unfortunately not all browsers support this flag (MSIE 6 SP1+, Firefox 3.0.0.6+, Opera 9.5+); if a browser is not aware of HTTPOnly the flag will be ignored. Default value is 1. Note1: Many peole are confused by the name "HTTPOnly" - it does not mean that this cookie works only over HTTP and not over HTTPS. Note2: This paramater requires Catalyst::Runtime 5.80005 otherwise is skipped. cookie_path The path of the request url where cookie should be baked. For example, you could stick this in MyApp.pm: __PACKAGE__->config( 'Plugin::Session' => { cookie_domain => '.mydomain.com', }); CAVEATS
Sessions have to be created before the first write to be saved. For example: sub action : Local { my ( $self, $c ) = @_; $c->res->write("foo"); $c->session( ... ); ... } Will cause a session ID to not be set, because by the time a session is actually created the headers have already been sent to the client. SEE ALSO
Catalyst, Catalyst::Plugin::Session. AUTHORS
Yuval Kogman <nothingmuch@woobling.org> CONTRIBUTORS
This module is derived from Catalyst::Plugin::Session::FastMmap code, and has been heavily modified since. Andrew Ford Andy Grundman Christian Hansen Marcus Ramberg Jonathan Rockway E<lt>jrockway@cpan.orgE<gt> Sebastian Riedel Florian Ragwitz COPYRIGHT
Copyright (c) 2005 - 2009 the Catalyst::Plugin::Session::State::Cookie "AUTHORS" and "CONTRIBUTORS" as listed above. LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2009-10-18 Catalyst::Plugin::Session::State::Cookie(3pm)
All times are GMT -4. The time now is 04:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy