Cookieとは? わかりやすく解説

cookie

別表記:クッキー

「cookie」とは・「cookie」の意味

「cookie」は、日本語では「クッキー」と訳されることが多い。一般的には焼き菓子一種を指すが、コンピュータ分野では、ウェブサイトユーザーブラウザ一時的に保存する小さなデータファイルを指す。このデータファイルには、ユーザー訪問履歴入力情報などが記録されウェブサイト利便性向上役立てられる

「cookie」の発音・読み方

「cookie」の発音は、IPA表記では /ˈkʊki/ となる。IPAカタカナ読みでは「クッキー」、日本人発音するカタカナ英語では「クッキー」と読む。発音によって意味や品詞が変わる単語ではない。

「cookie」の定義を英語で解説

A 'cookie' is a small piece of data stored on the user's computer by the web browser while browsing a website. Cookies were designed to be a reliable mechanism for websites to remember stateful information or to record the user's browsing activity.

「cookie」の類語

「cookie」の類語としては、「biscuit」がある。ただし、「biscuit」はイギリス英語で、「cookie」はアメリカ英語である。また、コンピュータ分野では、「HTTP cookie」、「web cookie」、「browser cookie」などとも呼ばれる

「cookie」に関連する用語・表現

「cookie」に関連する用語としては、「session」、「cache」、「browser」などがある。これらはすべて、ウェブブラウジングの際に重要な役割を果たす概念である。「session」ユーザーウェブサイト訪れてから離れるまでの一連の操作指し、「cache」は一時的に保存されるデータ集合を指す。「browser」はウェブサイト閲覧するためのソフトウェアである。

「cookie」の例文

1. English example: "Please accept the cookies to continue browsing the website." (ウェブサイト閲覧続けるためには、クッキー許可してください。)
2. English example: "This website uses cookies to improve user experience." (このウェブサイトユーザー体験向上させるためにクッキー使用してます。)
3. English example: "You can clear your cookies in the browser settings." (ブラウザ設定クッキー削除することができます。)
4. English example: "Cookies allow websites to remember your preferences." (クッキーにより、ウェブサイトはあなたの好み記憶することができます。)
5. English example: "Some cookies are essential for the website to function properly." (一部クッキーは、ウェブサイト正常に機能するために必要です。)
6. English example: "Cookies can track your browsing history." (クッキーはあなたの閲覧履歴追跡することができます。)
7. English example: "Cookies can be used for targeted advertising." (クッキーターゲット広告使用することができます。)
8. English example: "Third-party cookies are often used for online advertising." (サードパーティークッキーは、オンライン広告によく使用されます。)
9. English example: "Session cookies are deleted when you close your browser." (セッションクッキーは、ブラウザ閉じると削除されます。)
10. English example: "Persistent cookies remain on your device even after you close your browser." (パーシステントクッキーは、ブラウザ閉じた後もあなたのデバイス残ります。)

クッキー【(アメリカ)cookie】

読み方:くっきー

小麦粉バター砂糖・卵・牛乳香料などを加えて焼いた菓子。→ビスケット


クッキー【Cookie】


Cookie

読み方クッキー

Cookieとは、Webサイト訪れたユーザーに関する情報記録・保存し、次回利用する技術総称である。

Cookieは、HTTPリクエスト含まれているテキスト文字列で、サーバーに対してユーザー特定のページに再びアクセスしたことを伝え機能持っている具体的にCookieに記される情報は、ユーザー最後にWebサイト訪れた日時や、そのサイト訪問回数、その他ユーザー情報である。主にユーザー識別のために用いられるもので、ユーザー情報引き継ぐ場面で何かと役に立つ例えば、あるWebサイトから別のWebサイト移り、再び元のWebサイト戻ってきたときでも、ユーザー同一人物認識され、また認証情報保たれた状態となる。ページ遷移するたびに新規に情報入力する手間省け前回提供した情報取得されるため、前に選択したWebサイト機能手軽に使用することができる。

Cookieには有効期限設定することが可能であり、有効期限過ぎたCookieは自動的に消滅する仕組みとなっている。ひとつのCookie機能記録できる情報は、データ最大4096バイトまで、エントリー最大300までとなっている。ひとつのコンピュータに対して同じサーバー付与することのできるCookieは20個までである。20それぞれに有効期限設けることが可能である。

Cookieは元々、Netscape Communications社が自社Webブラウザ向けて開発したプログラム原型としている。今では多くブラウザがCookieに対応しており、デファクトスタンダードとして認知されている。

Cookieは個人アクセス履歴などを保存しているので、悪用すればプライバシー侵害する道具としても利用可能であるとの指摘がある。主要なブラウザ多くは、Cookieの有効・無効設定することが可能であるため、ユーザーによってはセキュリティ考慮してCookieを無効に設定していることも多い。

アプリケーションソフトのほかの用語一覧
Webブラウザ:  アドレスバー  オフラインブラウズ  Communicator  Cookie  Carakan  Camino  Firefox

Cookie クラス

Cookie を管理するために使用するプロパティメソッドセット提供します。このクラス継承できません。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
Public NotInheritable Class
 Cookie
[SerializableAttribute] 
public sealed class Cookie
[SerializableAttribute] 
public ref class Cookie sealed
/** @attribute SerializableAttribute() */ 
public final class Cookie
SerializableAttribute 
public final class Cookie
解説解説
使用例使用例

URL要求送信し応答返される Cookie を表示する例を次に示します

Imports System.Net
Imports System

' This example is run at the command line.
' Specify one argument: the name of the host to 
' receive the request.
' If the request is sucessful, the example displays the contents of
 the cookies
' returned by the host.

Public Class CookieExample
    
    Public Shared Sub Main(args()
 As String)
        If args Is Nothing
 OrElse args.Length <> 1 Then
            Console.WriteLine("Specify the URL to receive the
 request.")
            Environment.Exit(1)
        End If
        Dim request As HttpWebRequest = CType(WebRequest.Create(args(0)),
 HttpWebRequest)
        request.CookieContainer = New CookieContainer()
        
        Dim response As HttpWebResponse = CType(request.GetResponse(),
 HttpWebResponse)

        
        
        ' Print the properties of each cookie.
        Dim cook As Cookie
        For Each cook In
  response.Cookies
            Console.WriteLine("Cookie:")
            Console.WriteLine("{0} = {1}", cook.Name,
 cook.Value)
            Console.WriteLine("Domain: {0}", cook.Domain)
            Console.WriteLine("Path: {0}", cook.Path)
            Console.WriteLine("Port: {0}", cook.Port)
            Console.WriteLine("Secure: {0}", cook.Secure)
            
            Console.WriteLine("When issued: {0}",
 cook.TimeStamp)
            Console.WriteLine("Expires: {0} (expired? {1})",
 cook.Expires, cook.Expired)
            Console.WriteLine("Don't save: {0}", cook.Discard)
            Console.WriteLine("Comment: {0}", cook.Comment)
            Console.WriteLine("Uri for comments: {0}",
 cook.CommentUri)
            Console.WriteLine("Version: RFC {0}",
 IIf(cook.Version = 1, "2109", "2965"))
            
            ' Show the string representation of the cookie.
            Console.WriteLine("String: {0}", cook.ToString())
        Next cook
    End Sub 'Main
End Class 'CookieExample 



' Output from this example will be vary depending on the host name specified
,
' but will be similar to the following.
'
'Cookie:
'CustomerID = 13xyz
'Domain: .contoso.com
'Path: /
'Port:
'Secure: False
'When issued: 1/14/2003 3:20:57 PM
'Expires: 1/17/2013 11:14:07 AM (expired? False)
'Don't save: False
'Comment: 
'Uri for comments:
'Version: RFC 2965
'String: CustomerID = 13xyz
'

using System.Net;
using System;
namespace Examples.System.Net.Cookies
{
    // This example is run at the command line.
    // Specify one argument: the name of the host to 
    // send the request to.
    // If the request is sucessful, the example displays the contents
 of the cookies
    // returned by the host.
    
    public class CookieExample
    {   
        public static void
 Main(string[] args)
        {   
            if (args == null || args.Length
 != 1)
            {
                Console.WriteLine("Specify the URL to receive the request.");
                Environment.Exit(1);
            }
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(args[0]);
            request.CookieContainer = new CookieContainer();
        
            HttpWebResponse response = (HttpWebResponse) request.GetResponse();
            
            

            // Print the properties of each cookie.
            foreach (Cookie cook in response.Cookies)
            {
                Console.WriteLine("Cookie:");
                Console.WriteLine("{0} = {1}", cook.Name, cook.Value);
                Console.WriteLine("Domain: {0}", cook.Domain);
                Console.WriteLine("Path: {0}", cook.Path);
                Console.WriteLine("Port: {0}", cook.Port);
                Console.WriteLine("Secure: {0}", cook.Secure);
             
                Console.WriteLine("When issued: {0}", cook.TimeStamp);
                Console.WriteLine("Expires: {0} (expired? {1})", 
                    cook.Expires, cook.Expired);
                Console.WriteLine("Don't save: {0}", cook.Discard);   
 
                Console.WriteLine("Comment: {0}", cook.Comment);
                Console.WriteLine("Uri for comments: {0}",
 cook.CommentUri);
                Console.WriteLine("Version: RFC {0}" , cook.Version ==
 1 ? "2109" : "2965");

                // Show the string representation of the cookie.
                Console.WriteLine ("String: {0}", cook.ToString());
            }
        }
    }
}

// Output from this example will be vary depending on the host name
 specified,
// but will be similar to the following.
/*
Cookie:
CustomerID = 13xyz
Domain: .contoso.com
Path: /
Port:
Secure: False
When issued: 1/14/2003 3:20:57 PM
Expires: 1/17/2013 11:14:07 AM (expired? False)
Don't save: False
Comment: 
Uri for comments:
Version: RFC 2965
String: CustomerID = 13xyz
*/

#using <System.dll>

using namespace System;
using namespace System::Net;

// This example is run at the command line.
// Specify one argument: the name of the host to 
// send the request to.
// If the request is sucessful, the example displays the contents of
 the cookies
// returned by the host.
int main()
{
   array<String^>^args = Environment::GetCommandLineArgs();
   if ( args == nullptr || args->Length != 2 )
   {
      Console::WriteLine( "Specify the URL to receive the request." );
      Environment::Exit( 1 );
   }

   
   HttpWebRequest^ request = dynamic_cast<HttpWebRequest^>(WebRequest::Create(
 args[ 1 ] ));
   request->CookieContainer = gcnew CookieContainer;
   HttpWebResponse^ response = dynamic_cast<HttpWebResponse^>(request->GetResponse());
   response->Cookies = request->CookieContainer->GetCookies( request->RequestUri
 );
   
   // Print the properties of each cookie.
   System::Collections::IEnumerator^ myEnum = response->Cookies->GetEnumerator();
   while ( myEnum->MoveNext() )
   {
      Cookie^ cook = safe_cast<Cookie^>(myEnum->Current);
      Console::WriteLine( "Cookie:" );
      Console::WriteLine( "{0} = {1}", cook->Name, cook->Value );
      Console::WriteLine( "Domain: {0}", cook->Domain );
      Console::WriteLine( "Path: {0}", cook->Path );
      Console::WriteLine( "Port: {0}", cook->Port );
      Console::WriteLine( "Secure: {0}", cook->Secure );
      Console::WriteLine( "When issued: {0}", cook->TimeStamp );
      Console::WriteLine( "Expires: {0} (expired? {1})", cook->Expires,
 cook->Expired );
      Console::WriteLine( "Don't save: {0}", cook->Discard );
      Console::WriteLine( "Comment: {0}", cook->Comment );
      Console::WriteLine( "Uri for comments: {0}", cook->CommentUri
 );
      Console::WriteLine( "Version: RFC {0}", cook->Version == 1 ? (String^)"2109"
 : "2965" );
      
      // Show the string representation of the cookie.
      Console::WriteLine( "String: {0}", cook );
      
   }

}

// Output from this example will be vary depending on the host name
 specified,
// but will be similar to the following.
/*
Cookie:
CustomerID = 13xyz
Domain: .contoso.com
Path: /
Port:
Secure: False
When issued: 1/14/2003 3:20:57 PM
Expires: 1/17/2013 11:14:07 AM (expired? False)
Don't save: False
Comment: 
Uri for comments:
Version: RFC 2965
String: CustomerID = 13xyz
*/
継承階層継承階層
System.Object
  System.Net.Cookie
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Cookie メンバ
System.Net 名前空間
CookieCollection
CookieContainer
CookieException

Cookie コンストラクタ ()


Cookie コンストラクタ (String, String, String, String)

指定した NameValuePath、および Domain使用してCookie クラス新しインスタンス初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

例外例外
例外種類条件

CookieException

name パラメータnull 参照 (Visual Basic では Nothing) です。

または

name パラメータ長さが 0 です。

または

name パラメータ無効な文字含まれています。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Cookie クラス
Cookie メンバ
System.Net 名前空間
CookieCollection
CookieContainer
CookieException

Cookie コンストラクタ (String, String)

指定した NameValue使用してCookie クラス新しインスタンス初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

public:
Cookie (
    String^ name, 
    String^ value
)

パラメータ

name

Cookie の名前。等号 (=)セミコロン (;)、コンマ (,)、改行 (\n)、リターン (\r)、およびタブ (\t) は、name 内で使用しないくださいドル記号文字 ("$") を最初文字にすることはできません。

value

Cookie の値。セミコロン (;) とコンマ (,) は、value 内で使用しないください

例外例外
例外種類条件

CookieException

name パラメータnull 参照 (Visual Basic では Nothing) です。

または

name パラメータ長さが 0 です。

または

name パラメータ無効な文字含まれています。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Cookie クラス
Cookie メンバ
System.Net 名前空間
CookieCollection
CookieContainer
CookieException

Cookie コンストラクタ


Cookie コンストラクタ (String, String, String)

指定した NameValue、および Path使用してCookie クラス新しインスタンス初期化します。

名前空間: System.Net
アセンブリ: System (system.dll 内)
構文構文

パラメータ

name

Cookie の名前。等号 (=)セミコロン (;)、コンマ (,)、改行 (\n)、リターン (\r)、およびタブ (\t) は、name 内で使用しないくださいドル記号文字 ("$") を最初文字にすることはできません。

value

Cookie の値。セミコロン (;) とコンマ (,) は、value 内で使用しないください

path

この Cookie適用される送信サーバーURIサブセット既定値は "/" です。

例外例外
例外種類条件

CookieException

name パラメータnull 参照 (Visual Basic では Nothing) です。

または

name パラメータ長さが 0 です。

または

name パラメータ無効な文字含まれています。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Cookie クラス
Cookie メンバ
System.Net 名前空間
CookieCollection
CookieContainer
CookieException

Cookie プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

Cookie クラス
System.Net 名前空間
CookieCollection
CookieContainer
CookieException

Cookie メソッド


Cookie メンバ

Cookie を管理するために使用するプロパティメソッドセット提供します。このクラス継承できません。

Cookie データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

Cookie クラス
System.Net 名前空間
CookieCollection
CookieContainer
CookieException

Cookie

名前 クーキー; クッキー

クッキー (曖昧さ回避)

(Cookie から転送)

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2025/04/08 05:22 UTC 版)

クッキー(cookie、くっきー)

製品

キャラクター、人物

人物

動物

キャラクター

場所

関連項目


Cookie

出典: フリー百科事典『ウィキペディア(Wikipedia)』 (2022/06/03 15:52 UTC 版)

「りぼん」の記事における「Cookie」の解説

1999年に「ぶ〜け」との合同増刊として創刊2号発行されたあと、2000年5月独立した雑誌として新創刊詳しく該当項目参照

※この「Cookie」の解説は、「りぼん」の解説の一部です。
「Cookie」を含む「りぼん」の記事については、「りぼん」の概要を参照ください。

ウィキペディア小見出し辞書の「Cookie」の項目はプログラムで機械的に意味や本文を生成しているため、不適切な項目が含まれていることもあります。ご了承くださいませ。 お問い合わせ



固有名詞の分類


英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Cookie」の関連用語

Cookieのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Cookieのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
実用日本語表現辞典実用日本語表現辞典
Copyright © 2025実用日本語表現辞典 All Rights Reserved.
デジタル大辞泉デジタル大辞泉
(C)Shogakukan Inc.
株式会社 小学館
PHPプロ!PHPプロ!
©COPYRIGHT ASIAL CORPORATION ALL RIGHTS RESERVED.
IT用語辞典バイナリIT用語辞典バイナリ
Copyright © 2005-2025 Weblio 辞書 IT用語辞典バイナリさくいん。 この記事は、IT用語辞典バイナリの【Cookie】の記事を利用しております。
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.
日外アソシエーツ株式会社日外アソシエーツ株式会社
Copyright (C) 1994- Nichigai Associates, Inc., All rights reserved.
ウィキペディアウィキペディア
All text is available under the terms of the GNU Free Documentation License.
この記事は、ウィキペディアのクッキー (曖昧さ回避) (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。 Weblio辞書に掲載されているウィキペディアの記事も、全てGNU Free Documentation Licenseの元に提供されております。
ウィキペディアウィキペディア
Text is available under GNU Free Documentation License (GFDL).
Weblio辞書に掲載されている「ウィキペディア小見出し辞書」の記事は、Wikipediaのりぼん (改訂履歴)の記事を複製、再配布したものにあたり、GNU Free Documentation Licenseというライセンスの下で提供されています。

©2025 GRAS Group, Inc.RSS